LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-12-2006, 11:42 PM   #1
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Rep: Reputation: 30
java This.class error when running


Hi,

New to java!!

Now in class i know after we compiled our .java files we ran them via java interpreter

java Thisclass.class

and all was good.

However, in class we use WinXP and i use linux =D
and when i go to run my Window.class files through the interp i get the following.

Code:
java Window.class
Exception in thread "main" java.lang.NoClassDefFoundError: Window/class
I have a feeling im missing some small -something at the command line.

any help is appreciated

!later

Last edited by Fredstar; 02-12-2006 at 11:46 PM.
 
Old 02-12-2006, 11:46 PM   #2
excel28
Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 72

Rep: Reputation: 15
I think you're supposed to run the class file as

Code:
java Thisclass
 
Old 02-12-2006, 11:48 PM   #3
Fredstar
Member
 
Registered: Jul 2004
Location: Rochester, NY
Distribution: Fedora9::FreeBSD7.1
Posts: 296

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by excel28
I think you're supposed to run the class file as

Code:
java Thisclass

Its so funny!!!

something so so small.

thank you very much!!
 
  


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
Running a Java executable class from another executable class LUB997 Programming 22 07-24-2005 04:57 AM
error running soapstone (java) networking benchmark celejar Linux - Software 0 03-05-2005 07:21 PM
error in running a java app in linux milo36472 Linux - Newbie 16 02-09-2005 11:44 PM
Compile Java - .class, .java, .jar ? woranl Programming 2 11-09-2004 10:12 PM
Running Java Class Files hackersapien Programming 9 08-07-2003 06:42 AM


All times are GMT -5. The time now is 10:59 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