Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-09-2004, 05:15 PM   #1
Senior Member
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Rep: Reputation: 49
Running a Java App on Linux

I have recently downloaded a piece of Amatuer Radio software that uses Java. I have never used Java before on linux, so I installed Java and it appears to be installed on my system.

stevex@maestro:~/JLog$ java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
Using what the JLog (The program I am trying to install) Howto file I should have unpacked the file into a directory.. I did 'jar xv jl-1.02' inside the directory, and it unpacked the files..

stevex@maestro:~/JLog$ dir
Legal.txt  build.xml       contests/  foo          jl.bat  logs/
META-INF/  com/            data/      jl-1.02.jar   operations/
bin/       configuration/  docs/      jl-gen.bat   libx/   server.bat
According the Howto I should:

On UNIX/Linux/OS X, type
'java JL'.

When I do that I get an error.. so I need to know if my error is a Java Error, or me doing somthing wrong. I understand that not many of you know about the program I am trying to install (or atleast I don't assume there are many hams on here) BUT I figure many of you know about Java, and I suppose its all about the same, atleast when getting things to run.

stevex@maestro:~/JLog$ java JL
Exception in thread "main" java.lang.NoClassDefFoundError: JL
Thats the error I get when I use the comman instructed by the HowTo.. I assume the howto is correct, and I am doing things correct.. and that that manes there is a Java error.. How do you I start the Java runtime enviroment to run apps?

Thanks for your time and help!
Old 12-09-2004, 06:09 PM   #2
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
that is a java error. most likely the class JL is not in the default package. you have to track down which package by either
jar -t <jarfile>
or look at the source code. The package name is usually (com.something.something or java.something...)

once you find out run JL by
java <package>.JL
Old 12-09-2004, 06:16 PM   #3
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 30
There's a startup script in the jl directory, to run it simply type in


Old 12-09-2004, 06:26 PM   #4
Senior Member
Registered: Aug 2003
Location: Austin, TX
Distribution: Mac OS 10.7 / CentOS 6(servers) / xubuntu 13.04
Posts: 1,186

Original Poster
Rep: Reputation: 49
If I was not born blonde..

Thanks.. I did sh and now I have my program running..

Now for getting my other log program going which is in Java, but seems to be very different.

Thanks Again!


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
windows java based app running on fedora core 3? linuxmandrake Linux - Software 2 06-18-2005 12:10 PM
error in running a java app in linux milo36472 Linux - Newbie 16 02-10-2005 12:44 AM
Problems running a Java Swing app under Linux paulmai Linux - General 2 12-04-2004 07:51 PM
help with running a java app Soggy Linux - Software 7 11-20-2003 08:57 PM
Running VB app in Linux rick Programming 4 01-22-2002 04:23 AM

All times are GMT -5. The time now is 01:13 PM.

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