Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hello, i try to compile and make run my java files from terminal
I have installed the Sun jre 1.5 package that commes with the installation package of Linux and i have installed the new version the 1.6 from Sun too. Then i have the 2 version in my laptop (1.5 in /usr.... and the other one in /opt/....).
Previously i have set the path of the javac like that: export PATH=$PATH:/path/to/java/bin
Then, after compiling the file i try to launch the file and a message error is sent:
marco@marco-laptop:~/Project/JFiles> javac Cejemplo01.java
marco@marco-laptop:~/Project/JFiles> java Cejemplo01
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.security.AccessController.doPrivileged(Native Method)
its a simple code and i dont think i made a mistake doing that.
I'm no expert in this field, but allot of people don't set up Java correctly, on this web page is a link called "java runtime Plugin". The site is for Fedora 6, but the java set up should apply to most, pay attention to "Note" regarding compatible libraries, and under that is a section called "Controlling Java through 'alternatives'" which might tip you in the right direction.
Not true, the code is perfectly sound. I really don't see any superfluous brackets; sure, there is one in the comment but by definition anything appearing in comments gets ignored by the compiler - so there isn't any problem at all, really.
That being said, it's my understanding that this issue is solved; I think Marco posted this bit of code only to show it is.