LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to run a java application developed by jdeveloper (on Windows) in Linux (https://www.linuxquestions.org/questions/programming-9/how-to-run-a-java-application-developed-by-jdeveloper-on-windows-in-linux-721954/)

jefn 04-27-2009 05:17 AM

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,

Sergei Steshenko 04-27-2009 05:42 AM

Is your classpath set correctly ?

Is "class Frame1" a Windows-specific thing ?

jefn 04-27-2009 06:40 AM

Quote:

Originally Posted by Sergei Steshenko (Post 3522245)
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?

Sergei Steshenko 04-27-2009 07:08 AM

Quote:

Originally Posted by jefn (Post 3522298)
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 ?

jay73 04-27-2009 08:18 PM

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).

Sergei Steshenko 04-27-2009 08:35 PM

Quote:

Originally Posted by jay73 (Post 3523032)
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.

jefn 04-28-2009 03:42 AM

Quote:

Originally Posted by Sergei Steshenko (Post 3523042)
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

Sergei Steshenko 04-28-2009 04:15 AM

Quote:

Originally Posted by jefn (Post 3523267)
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.


All times are GMT -5. The time now is 08:58 PM.