Solved

How to generate executable jar file from JSystemTrader with Eclipse ?

Posted on 2007-04-03
9
1,289 Views
Last Modified: 2008-01-09
Hi,

Eclipse 3.2
I try to generate executable jar file from this Java program under BSD licence :
http://www.myjavaserver.com/~nonlinear/JSystemTrader/JSystemTrader.html

I do :
Menu / file / Export...
Etc.

I have the following Error dialogue box :

JAR creation failed. See details for additional information.
Exported with compile warnings: /JSystemTrader/source/com/ib/client/EReader.java
Exported with compile warnings: /JSystemTrader/source/com/jsystemtrader/backdata/BackDataDialog.java
Exported with compile warnings:

Then warning about all class
Then  this error message :

Resource is out of sync with the file system: /JSystemTrader/log/EventLog.htm.

I think it is not the warning which stop generate Jar.
I think it is the last error message :
Resource is out of sync with the file system: /JSystemTrader/log/EventLog.htm.

How to generate executable jar file from JSystemTrader with Eclipse ?

Thanks.
0
Comment
Question by:Couturier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 10

Accepted Solution

by:
Jaax earned 500 total points
ID: 18842434
I could add the JSystemTrader into eclipse and compile it. Try refreshing the workspace using F5
0
 

Author Comment

by:Couturier
ID: 18844726
Hi Jaax,

Could you show me MANIFEST.MF file or ant script ?
0
 
LVL 92

Expert Comment

by:objects
ID: 18847214
theres a field in the about the 3rd jar export screen to enter the Main Class
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:Couturier
ID: 18849007
Hi Jaax,

I try F5 and it help me to do a step.
Now I do a jar file but when I double click I have the following error box :

Failed to load Main-Class manifest attribute from S:\testJSystemTrader.jar


0
 
LVL 92

Expert Comment

by:objects
ID: 18849141
u need to specify the main class when exporting the jar
0
 

Author Comment

by:Couturier
ID: 18849190
Hi objects,

I have specified the main class during the exporting process.
But I have the message :

Failed to load Main-Class manifest attribute from S:\testJSystemTrader.jar
0
 
LVL 92

Expert Comment

by:objects
ID: 18849219
check you have specified the correcxt class name

and try running it from command line to see if there are any exceptions at startuip

java -jar testJSystemTrader.jar
0
 

Author Comment

by:Couturier
ID: 18858876

I think that only a ready to use built.xml ant file could realy help me.
Could someone to made it ?

0
 

Author Comment

by:Couturier
ID: 18863938
Hi,

Eclipse 3.2

Eclipse 3.2
I try to generate executable jar file from this Java open source program under BSD licence :
http://www.myjavaserver.com/~nonlinear/JSystemTrader/JSystemTrader.html

Source code :
http://www.myjavaserver.com/~nonlinear/JSystemTrader/JSystemTrader.zip

There is a tutorial How to install JSystemTrader under Eclipse here :
http://groups.google.com/group/JavaTraders

I have already write 2 files :
A batch file to launch JSystemTrader.jar with the current directory parameter :

RunJST.bat

JSystemTrader.jar  cd
pause


And a xml for ANT

build.xml

<?xml version="1.0" encoding="UTF-8"?>

<project name="JST.makejar" default="makejar" basedir=".">

      <target name="compile" description="Compile the project">
            <javac fork="yes" srcdir="source/" destdir="bin/" classpath="lib/" />
      </target>

      <target name="makejar" description="Create a jar for the JSystemTrader project">
            <jar destfile="JSystemTrader.jar" basedir="bin/" compress="true">
                  <manifest>
                        <attribute name="Main-Class" value="com.jsystemtrader.client.JSystemTrader" />
                        <attribute name="Class-path" value="./;resources/;lib/jfreechart-1.0.0.jar;lib/jcommon-1.0.0.jar;lib/liquidlnf.jar" />
                  </manifest>
            </jar>
      </target>

</project>


The ANT xml  create 2 error dialogue boxs.
The first is :
Unable to set custom look & feel. The default L&F will be used.

Please help me to terminate this ANT xml.



0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question