Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 18-05-2008, 10:11 AM   #1 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Executing Class File in Ubuntu!


I am coding in JCreator(Windows) and now I want to execute the class file in Linux..
Dont know exactly if I have jdk or jre insatlled..

Here is the output of java -version

Quote:
nitish@Nitish:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This is what i did to execute the java ByteCode

Quote:
nitish@Nitish:~/Development$ java linear
Exception in thread "main" java.lang.ClassFormatError: linear (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.70)
at java.lang.ClassLoader.defineClass(libgcj.so.70)
at java.security.SecureClassLoader.defineClass(libgcj .so.70)
at java.net.URLClassLoader.findClass(libgcj.so.70)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at gnu.java.lang.MainThread.run(libgcj.so.70)
Do i need to secify path?? I am already working in the directory that contains the class file.


PS:I hope the section is correct! Mayb it shd have been in Open Source!
__________________
Do you know, Shinigamis only eat apples???

Last edited by nitish_mythology; 18-05-2008 at 10:14 AM. Reason: Details Added!
nitish_mythology is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 18-05-2008, 10:15 AM   #2 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: Executing Class File in Ubuntu!

I do not know about the problem, but its better if you use Sun Java JDK 6 than GCJ (GNU tools).
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 18-05-2008, 10:26 AM   #3 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: Executing Class File in Ubuntu!

I have exceeded my monthly Bandwidth usage so I dont want to download anything right now..will have to wait till June!
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 18-05-2008, 10:59 AM   #4 (permalink)
* Teh Flirt King *
 
Quiz_Master's Avatar
 
Join Date: Dec 2005
Location: Originally From : Ratlam M.P., Currently in: Hyderabad
Posts: 972
Default Re: Executing Class File in Ubuntu!

Or work in Netbeans (with JDK installed).... If you don't get enough bandwidth to download you can order a free DVD too from Netbeans.org
__________________
World is just a Quizzical Reality : Quiz_Master//Ashwin :D

Blog: http://ashwinsaxena.com/blog - Tech, Life and Other Things.
Quiz_Master is offline  
Old 18-05-2008, 12:44 PM   #5 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: Executing Class File in Ubuntu!

Ya i have ordered it.. Seems I wll have to wait for a few days if I cant work on GCj.
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 18-05-2008, 01:31 PM   #6 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,676
Default Re: Executing Class File in Ubuntu!

Quote:
Originally Posted by Quiz_Master View Post
Or work in Netbeans (with JDK installed).... If you don't get enough bandwidth to download you can order a free DVD too from Netbeans.org
+1
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to convert .class file to .java file??? garv84 Programming 4 11-04-2008 02:41 PM
Executing JSP nithinks QnA (read only) 2 18-02-2007 08:45 AM
URGENT-Executing JAVA programs nithinks QnA (read only) 2 11-12-2006 09:57 PM
java .class -> .exe file anyone? allajunaki QnA (read only) 1 22-08-2004 12:54 PM

 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 11:00 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2