• Log in or sign up for an account here: https://www.sythe.org/login

[Rsbot | Neat ] I'm in need of help with the Java portion. Neat and easy thread. Help

Status
Not open for further replies.
Joined
Nov 5, 2008
Sythe Gold
0
Messages
2,034
Location
surrey bc
Hello to anyone who has experience with Java.

I try to use Rsbot, I think I fixed my other error, as I don't get it anymore. I downloaded JDK update. Now I find myself getting these 2 errors. Please post all things that could be wrong, in order, and I will try each one.


Thanks for all the help ( if any )


rsbotproblem1pn2.png


rsbotproblem2lt8.png
 
Member of the Month Winner
Sythe's 10th Anniversary
*sighs* +Love+, did you even look at the error he was getting?

Also, Mike, did you even google your problem (i.e. "Javaw not found error" and so on)?

The problem is obvious: You don't have the 'PATH' environment variable set to include your java/JDK installation. When you run a command in command prompt, those commands are not actually features of the command program (most of the time) but rather, different programs altogether. Because RSBot calls "javaw" without a prefixed path, it assumes you have your PATH variable set up correctly which in your case you don't.

Easy fix, but it requires administrator privileges. On XP:

Start menu -> Right Click on My Computer -> Click on Properties

For Vista:

Menu -> Right Click on Computer -> Click on Properties -> Click on Advanced System Settings.

Next, on the 'Advanced' tab, click "Environment Variables".

In the box that says "System variables" (the second box) find the variable called PATH. It may contain something similar to this:

Code:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\

Now, click "edit" while having PATH selected, and at the end place a semi-colon followed by the "bin" folder in your Java installation directory.

For example,
Code:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jre-<version>\bin

You will need to find the Java installation directory by yourself, as people don't always have the same version. The default location is in C:\Program Files\Java\jre-<version>\bin, replacing <version> with the version shown.
 
Alright, i'll try the above tomorrow. Thanks, you seem like you know what ur talking about.

Can I add you on msn? i'm not the greatest at step by step.
 
this happened when i was re-downloading rsbot at my friends as he had to download jdk aswell, all i did was restart his computer and it compiled fine after.
 
Member of the Month Winner
Sythe's 10th Anniversary
this happened when i was re-downloading rsbot at my friends as he had to download jdk aswell, all i did was restart his computer and it compiled fine after.
That could mean that installing the JDK updates the PATH variable - it happens for some people.

And no, I don't hand out my MSN. This topic will suffice.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
Swan, don't you also need to set CLASSPATH? I thought you needed Path and Classpath... I may be wrong though...
 
go to My Computer\Local Disk C:\Program Files\Java
After that find the latest jdk in there which will start with jdk. Now follow the steps that swan stated, if you really cant get this I dont know how else to help you man.
 
go to My Computer\Local Disk C:\Program Files\Java
After that find the latest jdk in there which will start with jdk. Now follow the steps that swan stated, if you really cant get this I dont know how else to help you man.

The hole problem is I CANT find the JAVA under PROGRAM FILES.

if anyone can help me on where it might be.. I've looked and can't find it.
 
Member of the Month Winner
Sythe's 10th Anniversary
Swan, don't you also need to set CLASSPATH? I thought you needed Path and Classpath... I may be wrong though...
SuF, I thought you were better than that >_<

Classpath is a variable used by Java to determine where to look for other classes. For example, if you want to use a third-party SSH library, you would set the Classpath to include the path to that library - or at least, that's how I understood how it worked.

Path simply tells Windows where to look for executable programs when using "commands" such as java, javac and javaw. Similar to programs, scripts and sym-links /usr/bin and /usr/sbin in Linux. The error he is getting has to do with not finding an executable, not for not being able to find a specific class. After all, CLASSPATH does have one obvious identifier: the first five letters in its name.
 
<3 n4n0
Discord Verified
Two Factor Authentication User
Community Participant
Spam Forum Participant
Sythe's 10th Anniversary
Sythe Awards 2011 Winner
>.<, I was at school so I could not see the pics, and I have onle set java up like twice, so I really never understood how to do it correctly... >.<
 
Swan, i changed my path under system variable to -> C:\Program Files\Java\jre1.6.0_07\bin; i don't know if that is correct or not, or should i change it to -> C:\Program Files\Java\jre6\bin; Oh and im currently up to date with it, so yeah. and I accidentally Changed my PATH under my User variables, and i forgot what it used to be, please tell me what i should change that to? :/
 
Status
Not open for further replies.
duelarena.gg
Back
Top