Page 2 of 2 FirstFirst 12
Results 21 to 38 of 38
  1. #21
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    I ran jar file from command prompt like you suggested.Errors i am geting are:

    Exception in thread "main" java.lang.NoClassDefFoundError:dlh/lht/jPlanner/Application
    Caused By: java.lang.ClassNotFoundException:dlh.lht.jplanner. Application
    at java.net.URLClassLoader$1.run<Unknown Source>
    at java.security.AccessController.doPrivileged<Native Method>
    at java.netURLClassLoader.findClass<Unknown SOurce>
    at java.lang.ClassLoader.loadClass<Unknown SOurce>
    at sun.miscLauncher$AppClassLoader.LoadClass<Unknown Source>
    at java.lang.ClassLoader.loadClass<Unknown SOurce>
    at java.lang.ClassLoader.loadClassInternal<Unknown SOurce>
    Could Not find the Main Class:dlh.lht.jplanner.Application. Program will exit.
    Although i can see "Main" in the Application file.
    Please suggest!!

  2. #22
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    NoClassDefFoundError:dlh/lht/jPlanner/Application
    Where is this class located? Its probably in some jar file.
    Is that jar file on the classpath?
    You didn't show the commandline you used when you executed the program.
    i can see "Main" in the Application file.
    What does that mean? What is an "Application file"?
    How/why is "Main" important or useful to know about?

  3. #23
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    Commandline i used is : java -cp plannerjar.jar

    Is that jar file on the classpath?
    i didnt get it sorry?

    At the end of errors,it says 'could not find the main class:dlh.lht.jplanner.Application'

    Application file is the file causing errors(i guess)

  4. #24
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    plannerjar.jar is the name of jar file.

  5. #25
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    Where is the missing class?
    dlh.lht.jplanner.Application
    Is it in the plannerjar.jar file?
    If not, you need to find the jar file containing that class.

  6. #26
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    Hiya..I was missing jar file in the applcation.Now, application works fine the way it should at my local whne i run it through Eclipse IDE.I tried creating jar file, but no luck so far.It comes up with errors.Howz it possible that application tuns fine on Eclipase but doesnt get converted into Jar file?
    What is the difference in Jar file and execuable jar file? i am following ateps to create jar file through File->export->Jar file->select rewources to export->generate manifest in the workspace and main class specified-> finish.

    It comes up with compile errors.

  7. #27
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    It comes up with compile errors.
    Copy and post full text of the messages here.

    Don't understand how the program can run in Eclipse if you are getting compile errors. What you describe would normally be runtime errors caused by the created jar file not having something that Eclipse has when it executes the program.

  8. #28
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    Errirs i am getting when try to create jar file are:


    JAR creation failed. See details for additional information.
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Document.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Pattern.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Entities.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuEdit.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/IOManager.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuCalendar.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserSaveListener.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerCloseApplication.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcInfo.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuWindow.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuCapacity.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogShowInfo.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserOpenListener.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Frame.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/UpdateEntities.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FramePopUp.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogTimescale.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuEvent.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcCapacity.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerDocument.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserOpenListener2.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuFile.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuGroup.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcUpdate.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuView.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuAircraft.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogZuordnung.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Settings.java
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Project.java
    Problem writing planner/Planingtool 2.1/src/dlh/lht/.DS_Store to JAR: duplicate entry: dlh/lht/.DS_Store
    duplicate entry: dlh/lht/.DS_Store
    Problem writing planner/Planingtool 2.1/src/dlh/lht/jplaner/.DS_Store to JAR: duplicate entry: dlh/lht/jplaner/.DS_Store
    duplicate entry: dlh/lht/jplaner/.DS_Store
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Aircrafts.class to JAR: duplicate entry: dlh/lht/jplaner/Aircrafts.class
    duplicate entry: dlh/lht/jplaner/Aircrafts.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Application.class to JAR: duplicate entry: dlh/lht/jplaner/Application.class
    duplicate entry: dlh/lht/jplaner/Application.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Calendar.class to JAR: duplicate entry: dlh/lht/jplaner/Calendar.class
    duplicate entry: dlh/lht/jplaner/Calendar.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Capacity.class to JAR: duplicate entry: dlh/lht/jplaner/Capacity.class
    duplicate entry: dlh/lht/jplaner/Capacity.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/CapacityDao.class to JAR: duplicate entry: dlh/lht/jplaner/CapacityDao.class
    duplicate entry: dlh/lht/jplaner/CapacityDao.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/CapacityDaoImpl.class to JAR: duplicate entry: dlh/lht/jplaner/CapacityDaoImpl.class
    duplicate entry: dlh/lht/jplaner/CapacityDaoImpl.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DataBase.class to JAR: duplicate entry: dlh/lht/jplaner/DataBase.class
    duplicate entry: dlh/lht/jplaner/DataBase.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DataBaseBudget.class to JAR: duplicate entry: dlh/lht/jplaner/DataBaseBudget.class
    duplicate entry: dlh/lht/jplaner/DataBaseBudget.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DataBaseCapacity.class to JAR: duplicate entry: dlh/lht/jplaner/DataBaseCapacity.class
    duplicate entry: dlh/lht/jplaner/DataBaseCapacity.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DataBaseUpdate.class to JAR: duplicate entry: dlh/lht/jplaner/DataBaseUpdate.class
    duplicate entry: dlh/lht/jplaner/DataBaseUpdate.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Department.class to JAR: duplicate entry: dlh/lht/jplaner/Department.class
    duplicate entry: dlh/lht/jplaner/Department.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogCalendar.class to JAR: duplicate entry: dlh/lht/jplaner/DialogCalendar.class
    duplicate entry: dlh/lht/jplaner/DialogCalendar.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogChangePattern.class to JAR: duplicate entry: dlh/lht/jplaner/DialogChangePattern.class
    duplicate entry: dlh/lht/jplaner/DialogChangePattern.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogChangeProject.class to JAR: duplicate entry: dlh/lht/jplaner/DialogChangeProject.class
    duplicate entry: dlh/lht/jplaner/DialogChangeProject.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogColor$1.class to JAR: duplicate entry: dlh/lht/jplaner/DialogColor$1.class
    duplicate entry: dlh/lht/jplaner/DialogColor$1.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogCreateProject.class to JAR: duplicate entry: dlh/lht/jplaner/DialogCreateProject.class
    duplicate entry: dlh/lht/jplaner/DialogCreateProject.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogFontSettings$1.class to JAR: duplicate entry: dlh/lht/jplaner/DialogFontSettings$1.class
    duplicate entry: dlh/lht/jplaner/DialogFontSettings$1.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogInfoFields.class to JAR: duplicate entry: dlh/lht/jplaner/DialogInfoFields.class
    duplicate entry: dlh/lht/jplaner/DialogInfoFields.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogInputTextfield.class to JAR: duplicate entry: dlh/lht/jplaner/DialogInputTextfield.class
    duplicate entry: dlh/lht/jplaner/DialogInputTextfield.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogMakeTable.class to JAR: duplicate entry: dlh/lht/jplaner/DialogMakeTable.class
    duplicate entry: dlh/lht/jplaner/DialogMakeTable.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogOdbc.class to JAR: duplicate entry: dlh/lht/jplaner/DialogOdbc.class
    duplicate entry: dlh/lht/jplaner/DialogOdbc.class
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogOdbcBudget.class to JAR: duplicate entry: dlh/lht/jplaner/DialogOdbcBudget.class
    duplicate entry: dlh/lht/jplaner/DialogOdbcBudget.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcCapacity.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogOdbcCapacity.class to JAR: duplicate entry: dlh/lht/jplaner/DialogOdbcCapacity.class
    duplicate entry: dlh/lht/jplaner/DialogOdbcCapacity.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcInfo.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogOdbcInfo.class to JAR: duplicate entry: dlh/lht/jplaner/DialogOdbcInfo.class
    duplicate entry: dlh/lht/jplaner/DialogOdbcInfo.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogOdbcUpdate.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogOdbcUpdate.class to JAR: duplicate entry: dlh/lht/jplaner/DialogOdbcUpdate.class
    duplicate entry: dlh/lht/jplaner/DialogOdbcUpdate.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogShowInfo.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogShowInfo$MyPrinter.class to JAR: duplicate entry: dlh/lht/jplaner/DialogShowInfo$MyPrinter.class
    duplicate entry: dlh/lht/jplaner/DialogShowInfo$MyPrinter.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogTimescale.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogTimescale.class to JAR: duplicate entry: dlh/lht/jplaner/DialogTimescale.class
    duplicate entry: dlh/lht/jplaner/DialogTimescale.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/DialogZuordnung.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/DialogZuordnung.class to JAR: duplicate entry: dlh/lht/jplaner/DialogZuordnung.class
    duplicate entry: dlh/lht/jplaner/DialogZuordnung.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Document.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Document.class to JAR: duplicate entry: dlh/lht/jplaner/Document.class
    duplicate entry: dlh/lht/jplaner/Document.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Entities.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Entities.class to JAR: duplicate entry: dlh/lht/jplaner/Entities.class
    duplicate entry: dlh/lht/jplaner/Entities.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserOpenListener.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/FileChooserOpenListener.class to JAR: duplicate entry: dlh/lht/jplaner/FileChooserOpenListener.class
    duplicate entry: dlh/lht/jplaner/FileChooserOpenListener.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserOpenListener2.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/FileChooserOpenListener2.class to JAR: duplicate entry: dlh/lht/jplaner/FileChooserOpenListener2.class
    duplicate entry: dlh/lht/jplaner/FileChooserOpenListener2.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FileChooserSaveListener.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/FileChooserSaveListener.class to JAR: duplicate entry: dlh/lht/jplaner/FileChooserSaveListener.class
    duplicate entry: dlh/lht/jplaner/FileChooserSaveListener.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Frame.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Frame$ListenerMenuItems.class to JAR: duplicate entry: dlh/lht/jplaner/Frame$ListenerMenuItems.class
    duplicate entry: dlh/lht/jplaner/Frame$ListenerMenuItems.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/FramePopUp.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/FramePopUp.class to JAR: duplicate entry: dlh/lht/jplaner/FramePopUp.class
    duplicate entry: dlh/lht/jplaner/FramePopUp.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/IOManager.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/IOManager.class to JAR: duplicate entry: dlh/lht/jplaner/IOManager.class
    duplicate entry: dlh/lht/jplaner/IOManager.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerCloseApplication.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerCloseApplication.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerCloseApplication.class
    duplicate entry: dlh/lht/jplaner/ListenerCloseApplication.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerDocument.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerDocument.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerDocument.class
    duplicate entry: dlh/lht/jplaner/ListenerDocument.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuAircraft.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuAircraft.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuAircraft.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuAircraft.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuCalendar.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuCalendar.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuCalendar.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuCalendar.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuCapacity.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuCapacity.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuCapacity.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuCapacity.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuEdit.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuEdit.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuEdit.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuEdit.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuEvent.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuEvent.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuEvent.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuEvent.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuFile.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuFile.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuFile.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuFile.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuGroup.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuGroup.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuGroup.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuGroup.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuView.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuView.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuView.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuView.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/ListenerMenuWindow.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/ListenerMenuWindow.class to JAR: duplicate entry: dlh/lht/jplaner/ListenerMenuWindow.class
    duplicate entry: dlh/lht/jplaner/ListenerMenuWindow.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Pattern.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Pattern.class to JAR: duplicate entry: dlh/lht/jplaner/Pattern.class
    duplicate entry: dlh/lht/jplaner/Pattern.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Project.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Project.class to JAR: duplicate entry: dlh/lht/jplaner/Project.class
    duplicate entry: dlh/lht/jplaner/Project.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/Settings.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/Settings.class to JAR: duplicate entry: dlh/lht/jplaner/Settings.class
    duplicate entry: dlh/lht/jplaner/Settings.class
    Exported with compile warnings: planner/Planingtool 2.1/src/dlh/lht/jplaner/UpdateEntities.java
    Problem writing planner/Planingtool 2.1/bin/dlh/lht/jplaner/UpdateEntities.class to JAR: duplicate entry: dlh/lht/jplaner/UpdateEntities.class
    duplicate entry: dlh/lht/jplaner/UpdateEntities.class
    These are application specific errors.

  9. #29
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    duplicate entry: dlh/lht/.DS_Store
    I think that There is something wrong with how you are using Eclipse if you are getting so many duplicte entry errors.
    Try asking the question on the Eclipse forum.
    Or get out of Eclipse and create the jar file using the jar command.

  10. #30
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    ok!! how can i create jar file on desktop through command prompt?

  11. #31
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Smile need sources

    Quote Originally Posted by New_ToJava View Post
    ok!! how can i create jar file on desktop through command prompt?
    What we need to do here may not be do-able. No one can effectively prevent you from concepting and desiging a full-blown application. Building that to the desktop is a beginner level work. The right way for the provider of the dot jar file is to protect their work in any manner they see fit, and with the tools available in Java that is not overly hard for an experienced programmer.

    Sounds like you need to study Java from the get-go and build your own application as you see fit and protect that according to the skills you develop. No one here is going to help you get the sources to a dot jar file if they will not provide those sources, and if you do not have them by now with what you have already posted you should begin a course of study independent of the commercial application you are trying to work with.

    No slam intended, this is just how it is.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  12. #32
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    Thanks for the suggestion.I understand it but the only problem is that i havent got enough time to syudy Java.Need to upgrade this project and deploy it today.

  13. #33
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    The jar program is documented in the API doc.
    Here's a batch file I use to create a jar file for an app:
    Java Code:
    @Rem Create the HTTPServer.jar file:
    SET JarName=%DEV_HOME%\JavaDevelopment\HTTPServer\HTTPServer.jar  
    %DEV_HOME%
    cd %DEV_HOME%\JavaDevelopment\
    jar -cf %JarName% HTTPServer\*.class NormsDev\Timer*.class Servlets\*.class NormsTools\SaveStdOutput*.class NormsDev\WarningBox*.class NormsTools\GetIntInput*.class NormsTools\GetInput*.class NormsTools\MakeEnterDoAction*.class NormsTools\EnvironVars*.class NormsTools\FindOurHome*.class NormsTools\FindInTA*.class NormsTools\ErrDialog*.class NormsTools\MessageArea*.class NormsTools\ChoiceOfYesOrNo*.class
    
    cd %DEV_HOME%\JavaDevelopment\HTTPServer\
    jar -ufm %JarName% HTTPServer.mnf  HTTPServerFmJar.bat *.ini servlet.properties MyChat\*.class
    
    ECHO OFF
    ECHO  ---- Created: %JarName% ----
    @ECHO Remember to copy to \www for server
    MORE

  14. #34
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    ARe you referring to each and every class in your application? if thats the case then i have got quite a few class files, do i need to add all of them?

  15. #35
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,267
    Rep Power
    25

    Default

    Yes, you will need all that are used by your app.
    See the above: CD to the right folder and use: <package>\*.class

  16. #36
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    No luck!! batch file doesnt work. Jar file creation through IDE generated eroors i have no idea how to solve them.

  17. #37
    New_ToJava is offline Member
    Join Date
    Nov 2008
    Posts
    22
    Rep Power
    0

    Default

    i managed to create jar file thorugh command prompt, but its not working.

  18. #38
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Exclamation bbmf

    Quote Originally Posted by New_ToJava View Post
    Thanks for the suggestion.I understand it but the only problem is that i havent got enough time to syudy Java.Need to upgrade this project and deploy it today.
    As they say, LOL.
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

Page 2 of 2 FirstFirst 12

Similar Threads

  1. How to find java version
    By roshithmca in forum New To Java
    Replies: 3
    Last Post: 04-27-2012, 06:10 AM
  2. DB2 JDBC Driver upgrade
    By sanssan in forum JDBC
    Replies: 2
    Last Post: 09-23-2008, 04:52 PM
  3. version of java????
    By j2vdk in forum New To Java
    Replies: 6
    Last Post: 09-07-2008, 04:34 PM
  4. Replies: 7
    Last Post: 06-05-2008, 03:54 PM
  5. Netware: JAVA.NLM Version 1.31h Parameters
    By Larry Mateo in forum New To Java
    Replies: 0
    Last Post: 03-20-2008, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •