LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-24-2004, 05:56 PM   #1
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
Do I or Don't I have Java installed


I can't figure if I have a java compiler installed or not. Imagine that!

Hopefully this output will help someone help me:


pat@linux pat]$ whereis javac
javac: /usr/bin/javac

[pat@linux pat]$ whereis java
java: /usr/bin/java /usr/share/java

[pat@linux pat]$ java HelloWorldApp.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp.class
at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.4.0.0)
at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.4.0.0)
at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.4.0.0)
at __libc_start_main (/lib/i686/libc-2.3.2.so)


As always, thanks!
 
Old 02-24-2004, 06:32 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
Is there something like a JAVALIB environment variable you're missing or something maybe? I don't know too much about java, but that's where I'd look first. Sorry
 
Old 02-24-2004, 07:01 PM   #3
stoe
LQ Newbie
 
Registered: Jan 2004
Location: ny
Distribution: gentoo
Posts: 8

Rep: Reputation: 0
you did:
Code:
java HelloWorldApp.class
it should be:
Code:
java HelloWorldApp
".class" at the end won't work.
 
Old 02-24-2004, 08:22 PM   #4
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Original Poster
Rep: Reputation: 30
Thank you! That did it. I should be a Java master by next week

Last edited by patpawlowski; 02-24-2004 at 08:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 plugin installed correctly for Firefox but not able to view any java applet tvn Linux - Software 10 04-15-2010 02:13 AM
tell firefox where java is installed titanium_geek Linux - Software 6 02-09-2005 10:48 PM
java installed, but hangs king_nothingzzz Linux - Software 3 02-18-2004 12:45 AM
Do I have Java installed or not?...hmmm TippyToes Linux - General 2 08-12-2003 07:51 PM
I seem to have installed java twice crox Linux - Newbie 4 06-14-2003 04:52 PM


All times are GMT -5. The time now is 03:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration