Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Error #2

Open
CTMiner opened this issue Oct 20, 2013 · 5 comments
Open

Java Error #2

CTMiner opened this issue Oct 20, 2013 · 5 comments

Comments

@CTMiner
Copy link

CTMiner commented Oct 20, 2013

This pops up whenever I try to use WarmRoast. I just sent it a space for the VM number because it isn't returning anything, but 0 doesn't work either. I hope this is helpful.

C:\Users\[username]\Downloads\Minecraft>java -Djava.library.path="C:\Program Files
\Java\jdk1.7.0_45\bin" -cp "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar";war
mroast.jar com.sk89q.warmroast.WarmRoast --thread "Server thread"
------------------------------------------------------------------------
WarmRoast
http://github.com/sk89q/warmroast
------------------------------------------------------------------------

java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Pr
ovider sun.tools.attach.WindowsAttachProvider could not be instantiated: java.la
ng.UnsatisfiedLinkError: no attach in java.library.path
Choose a VM:

Enter choice #:

That's not a number. Bye.

C:\Users\[username]\Downloads\Minecraft>pause
Press any key to continue . . .
@sk89q
Copy link
Owner

sk89q commented Oct 21, 2013

Try

C:\Users\[username]\Downloads\Minecraft>java -Djava.library.path="C:\Program Files \Java\jdk1.7.0_45\bin" -cp "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;war mroast.jar" com.sk89q.warmroast.WarmRoast --thread "Server thread"

@CTMiner
Copy link
Author

CTMiner commented Oct 21, 2013

Same thing. What did you change? The two commands look exactly the same.

@sk89q
Copy link
Owner

sk89q commented Oct 21, 2013

Sorry, I must have forgotten to actually make the change.

Try

C:\Users\[username]\Downloads\Minecraft>java "-Djava.library.path=C:\Program Files \Java\jdk1.7.0_45\bin" -cp "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;war mroast.jar" com.sk89q.warmroast.WarmRoast --thread "Server thread"

I moved the quotation mark for -Djava.library.path

@sk89q sk89q closed this as completed Oct 21, 2013
@sk89q sk89q reopened this Oct 21, 2013
@CTMiner
Copy link
Author

CTMiner commented Oct 22, 2013

Sorry to be such a trouble about this. It still didn't work; command prompt copy below.


C:\Users\[username]\Downloads\Minecraft>java "-Djava.library.path=C:\Program Files
\Java\jdk1.7.0_45\bin" -cp "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;warm
roast.jar" com.sk89q.warmroast.WarmRoast --thread "Server thread"
------------------------------------------------------------------------
WarmRoast
http://github.com/sk89q/warmroast
------------------------------------------------------------------------

java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Pr
ovider sun.tools.attach.WindowsAttachProvider could not be instantiated: java.la
ng.UnsatisfiedLinkError: no attach in java.library.path
Choose a VM:

Enter choice #:

@millfreedom
Copy link

Hey, scienceguru1!

First of all - try to change all Program Files to Progra~1 in your command, usually works :)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants