Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-11-2015, 04:12 AM   #1
Registered: Jan 2015
Location: India
Distribution: Ubuntu, RHEL
Posts: 37

Rep: Reputation: Disabled
compiling multiple java file using terminal.

I am new in java. I executed a java program using eclipse. the program contain two java file. when i try to run it using terminal in Ubuntu.
two files are not linking. it shows error. i am attaching all the data.

It shows the following error
Code: error: cannot find symbol
	                    str = randomstr.nextString(2000);
  symbol:   variable randomstr
  location: class regex2string
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: regex2string
Caused by: java.lang.ClassNotFoundException: regex2string
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
Could not find the main class: regex2string. Program will exit.
Attached Files
File Type: txt regex2string.txt (9.1 KB, 5 views)
File Type: txt randomstr.txt (2.7 KB, 5 views)
Old 02-11-2015, 05:32 AM   #2
Registered: Jan 2015
Location: India
Distribution: Ubuntu, RHEL
Posts: 37

Original Poster
Rep: Reputation: Disabled
problem is solved..



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
[SOLVED] compiling multiple file code in Linux atlantis43 Programming 16 03-26-2014 07:51 AM
how to run the java applications jar file from the terminal rohaanembedded Programming 5 06-28-2013 01:58 AM
Compiling and launching java from the terminal marcoguillen Linux - Software 7 03-25-2007 03:43 AM
Compiling multiple Java Classes on demand dtheorem Programming 3 05-14-2004 12:43 AM
compiling a java file to be executable spyghost Programming 5 08-28-2003 07:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

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