LinuxQuestions.org
Visit Jeremy's Blog.
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 04-27-2009, 05:17 AM   #1
jefn
Member
 
Registered: Mar 2009
Posts: 37

Rep: Reputation: 15
How to run a java application developed by jdeveloper (on Windows) in Linux


Hi folks,

I need your experience please. I have developed a swing application in Java using JDeveloper on Windows platform and I moved the package to Linux. I tried to compile it:

Javac MainSys.java

but I got an error. however, I did not get any error on Windows.

the following is the error:
--------------------------------------------------------
Client/src/client/Application1.java:11: cannot find symbol
symbol : class Frame1
location: class client.Application1
JFrame frame = new ^Frame1();

1 error
--------------------------------------------------------

I do not like to download JDeveloper on linux but I want to use the linux Terminal.

Can you help me please?

Thanks alot all,
 
Old 04-27-2009, 05:42 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Is your classpath set correctly ?

Is "class Frame1" a Windows-specific thing ?
 
Old 04-27-2009, 06:40 AM   #3
jefn
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Sergei Steshenko View Post
Is your classpath set correctly ?

Is "class Frame1" a Windows-specific thing ?
yes, it is set correctly.

what should I do to run the code on linux platform?
 
Old 04-27-2009, 07:08 AM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by jefn View Post
yes, it is set correctly.

what should I do to run the code on linux platform?
I am not a Java guy, but I asked very simple things I know.

What about Frame1 - is it Windows-only ?
 
Old 04-27-2009, 08:18 PM   #5
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Quote:
new ^Frame1();
I don't know what that is but it definitely breaks one of the basic rules: don't start identifiers with operators (^ being the XOR operator).
 
Old 04-27-2009, 08:35 PM   #6
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by jay73 View Post
I don't know what that is but it definitely breaks one of the basic rules: don't start identifiers with operators (^ being the XOR operator).
But the compiler complains about missing Frame1 class, and there is no '^' in the error message.
 
Old 04-28-2009, 03:42 AM   #7
jefn
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Sergei Steshenko View Post
But the compiler complains about missing Frame1 class, and there is no '^' in the error message.

Hi guys,

My question was simple but I might not interpret very well.

I found the answer,

To compile:

javac folder/*.java


to run the application:


java folder/MainSys



regards,
J
 
Old 04-28-2009, 04:15 AM   #8
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by jefn View Post
Hi guys,

My question was simple but I might not interpret very well.

I found the answer,

To compile:

javac folder/*.java


to run the application:


java folder/MainSys



regards,
J
I vaguely remember that Java had the ability to automatically pick needed for compilation file when only top level file was given.

Well, I am not a Java guy anyway.
 
  


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
how to use windows application in linux and the commands to run. karuchua Linux - Newbie 5 07-09-2008 10:14 AM
How to run Linux application on Windows sateeshgalla Programming 9 08-26-2005 11:10 PM
How to Run my Active X Control Developed in VB6 in Linux? yesrajesh General 8 09-27-2004 06:43 AM
how to run a windows application one linux chris_law Linux - Software 7 10-09-2003 11:53 PM
How to run Windows Application in linux !! hitesh_linux Linux - General 7 01-15-2003 05:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration