LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-10-2003, 05:32 PM   #1
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Rep: Reputation: 30
java installation problem...


alright, i've tried countless times to install java. i am trying to install the sdk, someone told me to install that one so i tried, whether i install the rpm or the tar.gz it still doesn't work. how do i install it correctly?
 
Old 03-10-2003, 06:31 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What doesn't work about it? There are many ways to use the java sdk. Does the java compiler not work? Does the java plugin not work?

More info please. Don't be afraid to tell us more then we need to know.
 
Old 03-10-2003, 06:33 PM   #3
Infinite_Pizza
Member
 
Registered: Mar 2003
Posts: 47

Rep: Reputation: 15
r u install as a user ?
have u set the path ? and make the path available with chmod ?
 
Old 03-11-2003, 01:52 AM   #4
Haploness
LQ Newbie
 
Registered: Mar 2003
Posts: 18

Rep: Reputation: 0
If you are talking about the plugin: I have RH 7.2 and installed j2re-1_4_1_01-fcs-linux-i586.rpm.
Then the only thing I had to do was to make a link:
ln -s /usr/java/j2re1.4.1_01/plugin/i386/ns610/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so
then launch mozilla and go.
If you are using another browser you will probably need to make the link addressing some other place.
Good luck
 
Old 03-11-2003, 04:31 PM   #5
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Original Poster
Rep: Reputation: 30
i can't get the compiler to work,..it keeps giving saying that the java compiler isn't found and i don't know what the problem could be.
 
Old 03-11-2003, 11:50 PM   #6
sienarot
Member
 
Registered: Mar 2003
Location: Calgary, Alberta, Canada
Distribution: Gentoo 1.4, Debian Woody, Mandrake 8.1
Posts: 43

Rep: Reputation: 15
But the install worked??

If that's the case, it might just be something as simple as not setting the path to the java executable files.

Do either "whereis javac" or "locate javac" and it should return where the file is. Go to that directory and just write a simple "Hello World" program to make sure it works. If it works in that directory, either set the path to that directory, or create a symlink to /usr/bin (what I usually do), or something.

ln -s <location of javac> /usr/bin/javac

Samething with "java"
 
Old 03-12-2003, 01:23 AM   #7
Zerodark
Member
 
Registered: Mar 2003
Location: Fort Sill, Oklahoma
Distribution: Gentoo
Posts: 192

Original Poster
Rep: Reputation: 30
i tried to do that, and i get this.



Warning: -Xmx100331648 not understood. Ignoring.
Warning: -Xms16777216 not understood. Ignoring.
Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class ZeroGq: java.lang.ClassNotFoundException: javax.swing.JDialog
at 0x4028115f: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x4027408e: java.lang.Error.Error(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40281542: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40275a92: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40272ff2: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/libgcj.so.3)
at 0x40272dbb: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/libgcj.so.3)
at 0x4030b29b: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x402606d7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x40272cac: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.3)
at 0x40260dcc: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
at 0x4025d1fd: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
at 0x40253809: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.3)
at 0x40249697: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.3)
at 0x40241a24: _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.3)
at 0x40260568: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.3)
at 0x40273073: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/libgcj.so.3)
at 0x4025e99c: java.lang.Class.initializeClass() (/usr/lib/libgcj.so.3)
at 0x4025d224: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.3)
at 0x4025d2bf: java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.3)
at 0x402c60a0: gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.3)
at 0x40267fdc: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.3)
at 0x4023478c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.3)
at 0x08048900: __gcj_personality_v0 (java.compiler=NONE)
at 0x420158d4: __libc_start_main (java.compiler=NONE)
at 0x080486c1: _Jv_RegisterClasses (java.compiler=NONE)
 
Old 03-12-2003, 02:51 AM   #8
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
log in as user and type
echo $PATH
there should be printed sth like
/bin:/sbin:/usr/java/sdk/bin: or similar

so if there's no entry for your javac-directory u have to make it available to the bash with an entry to
/home/username/.bashrc
like
export PATH = /path/to/urjavasdk/bin/:$PATH

then
'source ~/.bashrc'

try
echo $CLASSPATH
post if this returns sth

always execute javac and java as user

cheers, jens
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java installation problem franklampard Linux - Software 2 09-27-2005 01:53 AM
java installation Prageem Linux - Software 4 09-20-2005 10:48 AM
Java installation problem MathewScott Linux - Software 1 03-18-2005 11:34 AM
Java installation problem fhleung Linux - General 3 10-03-2004 12:30 PM
Java VM installation problem reefadt Linux - Newbie 7 08-16-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration