Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to generate executable jar file from JSystemTrader with Eclipse ?

Posted on 2007-04-03
9
Medium Priority
?
1,311 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 2000 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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

721 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