Results 1 to 12 of 12
  1. #1
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default Need to have multiple computers run same java program

    I wrote a Java program that works with JavaExcel API to store its information, the program is working great on my machine, but i need to put it on a network folder to allow more than one computer to access it. I have tried everything to the extent of my knowledge to allow this java program to run and have JavaExcel API work as a library, I either cannot even get the program to run or it does not see JavaExcel API and is rendered usless. Please help.

  2. #2
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default

    Also the reason it works on my machine is because I am running it with JCreator.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,570
    Rep Power
    25

    Default

    First I'd get it out of the IDE and into a standalone jar file for further testing.
    I have no idea what happens if you start a java program on a network folder from a nonhost computer.

  4. #4
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default

    See the thing is the JavaExcel API doesn't work correctly if i compile the project into a jar file....

  5. #5
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,570
    Rep Power
    25

    Default

    doesn't work correctly
    There has to be a way to execute the program outside of the IDE.
    What does the above mean?

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by thehighlander12 View Post
    See the thing is the JavaExcel API doesn't work correctly if i compile the project into a jar file....
    Did you end up with any errors? Can you show it to us, if so any?

  7. #7
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default

    No I did not end with any errors, I run the program in JCreator with the required libraries(the files are in their own jar file) and when I compile my project into a jar file the required library is not seen or was not included correctly, my only problem is that the program does not seem to see the other jar file.

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,570
    Rep Power
    25

    Default

    How many other jar files are needed to execute your program? Besides the one holding your code? Are all the jar files in the same folder with your jar file?
    Does your jar file contain a manifest file with a Class-path: entry referencing the other jar files?
    Can you execute the jar file in a command prompt window and copy and paste the contents of the screen here?

  9. #9
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default

    There is only one other jar file. How do I reference that jar file in the manifest file because I know I am not doing that now and that may be just what I needed. Can you please tell me the syntax behind that? Thank you very much for your help.

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,570
    Rep Power
    25

    Default

    I think the syntax is: Class-path: <otherjarfilename.jar>
    No brackets.
    Better read the API doc if this doesn't work

  11. #11
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

    Default

    Thank you very much.

  12. #12
    Join Date
    Feb 2009
    Posts
    15
    Rep Power
    0

Similar Threads

  1. Multiple Menu Program
    By thunderbird in forum AWT / Swing
    Replies: 7
    Last Post: 04-05-2010, 04:15 PM
  2. Connecting to Multiple Clients in a Chat Program
    By Gregadeaux in forum Networking
    Replies: 0
    Last Post: 12-09-2009, 01:41 AM
  3. Replies: 24
    Last Post: 12-03-2009, 10:58 PM
  4. multiple program
    By mm2236 in forum Threads and Synchronization
    Replies: 2
    Last Post: 10-02-2009, 12:27 PM
  5. Replies: 4
    Last Post: 10-02-2008, 10:05 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
  •