
[SOLVED]java error
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: java error
at least for Windows, only "JAVA_HOME" is needed (according to Sun guide): http://developers.sun.com/docs/javacaps ... ome_t.html 

-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
Ok,
So, here is what i did (thx a lot to you all for your help
)
1. Add into User Variable : Variable name : "JAVA_HOME" and just below "C:\Program Files\Java\jdk1.6.0_19\bin"
2. Add into System Variable (at the end of the line ): ;C:\Program Files\Java\jdk1.6.0_19\bin
Now, running the game, and... still the AWT.DLL: Access Denied !
Before it was pointing to Java\JRE directory, now, it's C:\Program Files\Java\jdk1.6.0_19\jre\bin\awt.dll
It's understandable
B.
So, here is what i did (thx a lot to you all for your help

1. Add into User Variable : Variable name : "JAVA_HOME" and just below "C:\Program Files\Java\jdk1.6.0_19\bin"
2. Add into System Variable (at the end of the line ): ;C:\Program Files\Java\jdk1.6.0_19\bin
Now, running the game, and... still the AWT.DLL: Access Denied !
Before it was pointing to Java\JRE directory, now, it's C:\Program Files\Java\jdk1.6.0_19\jre\bin\awt.dll
It's understandable

B.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: java error
add the JAVA_HOME in the system variables, not user variables. and JAVA_HOME should point not in the bin directory, but the root directory of the java instalation!
created JAVA_HOME in system variables: C:\Program Files\Java\jdk1.6.0_20\
added to PATH in system variables: C:\Program Files\Java\jdk1.6.0_20\bin\
created JAVA_HOME in system variables: C:\Program Files\Java\jdk1.6.0_20\
added to PATH in system variables: C:\Program Files\Java\jdk1.6.0_20\bin\
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
Thx, so, ok, i did what you told me, and...janiii wrote:add the JAVA_HOME in the system variables, not user variables. and JAVA_HOME should point not in the bin directory, but the root directory of the java instalation!
created JAVA_HOME in system variables: C:\Program Files\Java\jdk1.6.0_20\
added to PATH in system variables: C:\Program Files\Java\jdk1.6.0_20\bin\
java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jdk1.6.0_19\jre\bin\awt.dll: Access Denied
..... no comment ...
B.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: java error
access denied - then check your permissions on that file/directory. and run the server with admin privileges (check the .bat file properties and run as administrator)
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
Ok, trying to do that, but sorry for the "no comment", it was not against somebody here but just about beeing tired to not find a solutionjaniii wrote:access denied - then check your permissions on that file/directory. and run the server with admin privileges (check the .bat file properties and run as administrator)
try to avoid comments like ".... no comment ...". ppl here are trying to help you even they never had such problems. it is only your own problem and you should be happy that you get some help on that.


B.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: java error
sorry, i misunderstood your comment. i hope we will find a solution for your problem. try the permissions or running the server as administrator, and please report here also if you succeed, so other users can also solve the same problem. thanksBeachmol wrote:Ok, trying to do that, but sorry for the "no comment", it was not against somebody here but just about beeing tired to not find a solutionand i thank you all taking some time to help me with that issue
B.

DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
No problemjaniii wrote:sorry, i misunderstood your comment. i hope we will find a solution for your problem. try the permissions or running the server as administrator, and please report here also if you succeed, so other users can also solve the same problem. thanksBeachmol wrote:Ok, trying to do that, but sorry for the "no comment", it was not against somebody here but just about beeing tired to not find a solutionand i thank you all taking some time to help me with that issue
B.

Of course i will write here the solution

I'm looking now at Google, and i think you're right, it's an administrator problem because when i look at the proprieties for the "java" folder into c:\program files\ the "read only" is checked (in grey color). When i uncheck it, it doesn't stay unchecked, so, looking at Goggle to find how to solve

B.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: java error
check the permission on the awt.dll file directly.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: java error
PATH is for mysql...
Edit: what the...?
Edit: what the...?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: java error
jurchiks wrote:PATH is for mysql...
Edit: what the...?
The PATH Environment Variable
The path to a file is basically its address on the computer. It tells programs how to find a file. It is the drive plus any directories and sub-directories where the file is located. The %PATH% environment variable specifies the command search path. Typically, this is a group of directories where executable files that are repeatedly used are to be found. Examples of the default values are listed in the first table above; in this case, they are the Windows directory and two of its important system sub-directories. To see what is in the PATH variable on a computer, open a command window and enter "echo %PATH%".
The PATH variable is not immutable and programs like Norton SystemWorks will stick themselves into PATH when they are installed. The PC user can also modify the contents using methods discussed further on. Adding directories to PATH can be very useful if you use scripts or the command line for system maintenance. For example, it can be convenient to put the directory where you keep backups into the PATH variable. It can also be useful to modify PATH if you put programs in a directory different from the usual one.
In the command line and in batch files, PATH can be modified by the command path = dir1;dir2;dir3 This command will create a PATH environment variable consisting of the three directories dir1, dir2, and dir3. Note that the directory names are separated by a semicolon in the command statement. (An alternate form omits the "equals" sign.) This command will replace any previous directories that were in the PATH variable. To add a directory "newdir" to the current path use the statement path = %PATH%;newdir
It is essential to remember that any changes that are made in a command window only endure until the window is closed. For permanent changes, use the method discussed in another section. It is also possible to use the command-line executable setx.exe that is contained in the Windows XP Service Pack 2 Support Tools.
Any file that is in a directory listed in the PATH variable can be found or opened by direct reference to the name of the file without having to specify the drive and directories where it is located. This is very handy in scripting and in other ways. For instance, the name of an executable file that is in a directory listed in the PATH variable can be entered into Start-Run to open certain applications (more on this subject here). An example is the executable file for the classic version of the game Solitaire that is generally in the system folder C:\Windows\System32\. The file is sol.exe and its full address with complete path is C:\Windows\System32\sol.exe. Normally this entire string would have to be used in order to reference the Solitaire game. Because its directory is listed in the PATH variable, however, it is sufficient to reference just the file name sol.exe. In fact, because of another environment variable PATHEXT discussed next, simply entering sol into Start-Run is sufficient to open the solitaire game.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: java error
what i meant is that for l2jserver you don't need java in PATH, and even for mysql it's only used when setting up the database (to not type the path manually).
I have JAVA_HOME for java and PATH for mysql and have no such problems so the problem is not in this.
Edit: about the topic - have you tried removing EVERYTHING about java?
uninstall, then Search>java, delete all folders (except eclipse workspace ones, of course), clean registry with CCleaner?
I have JAVA_HOME for java and PATH for mysql and have no such problems so the problem is not in this.
Edit: about the topic - have you tried removing EVERYTHING about java?
uninstall, then Search>java, delete all folders (except eclipse workspace ones, of course), clean registry with CCleaner?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
Ok, all i've tried did not work.janiii wrote:check the permission on the awt.dll file directly.
Still this awt.dll: access denied
With Vista or Seven, you can easily run an application with admin rights, but with xp, i AM the administrator and i do'nt understand why there is this "access denied". I've tried to set all as admin, and it does not work. Same about awt.dll, set as admin, and it does not work...
I can't believe i'm the last windows xp pro user... and beeing the only one with this problem.
It's not the first time i set and use a private L2 server for myself and it was always working fine. I don't understand what's wrong now.
Thank you to you all for your help though.
I'll try again and again until i'll find a solution

B.
-
- Posts: 27
- Joined: Tue Apr 21, 2009 8:49 pm
- Location: France
Re: java error
Yes, i did all that too, but still the same problem with awt.dll: access denied.jurchiks wrote:what i meant is that for l2jserver you don't need java in PATH, and even for mysql it's only used when setting up the database (to not type the path manually).
I have JAVA_HOME for java and PATH for mysql and have no such problems so the problem is not in this.
Edit: about the topic - have you tried removing EVERYTHING about java?
uninstall, then Search>java, delete all folders (except eclipse workspace ones, of course), clean registry with CCleaner?
B.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: java error
Well then it's not in java too, which leaves either some software blocking something or OS problems.
If you have an antivirus, try excluding the java folder from scanning.
If you have an antivirus, try excluding the java folder from scanning.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.