Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Java programme will run on one computer but not the other

  1. #1
    Junior Member
    Join Date
    Oct 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java programme will run on one computer but not the other

    https://github.com/Zettelkasten-Team/Zettelkasten

    I am a Java programme user but know nothing about the programming side.

    I am using a Java programme: Zkn3 as a zettelkasten. I like it alot and use two versions of it.

    One version of it has stopped working on one laptop but works on the other laptop even though they are the 'same' files being held in a DropBox folder???? Both machines are Windows 11 and up to date as is the JRE. What could it be in the set-up of the one computer that is stopping it displaying Zkn3 but not the other? It is runinng in the background but has not loaded the lists and launched the main GUI.

    Describe the bug
    I use both the 3.27 Daniels last version and the latest version 3.2022.8
    However the 3.27 version has stopped working. I click on the shortcut or on the .exe file and the logo screen appears followed by
    another screen which shows it loading entries. It fails to show the next screen in the sequence which is the creating Title lists and goes no further. It must be running somewhere because if you try and shut it down JRE reports that it is still active.

    To Reproduce
    Steps to reproduce the behavior:

    Start Zkn3 either from .exe or shortcut in version 3.27
    Expected behavior
    It should start the programme but instead after the opening screens nothing is seen.

    Screenshots
    If applicable, add screenshots to help explain your problem.

    Version information (please complete the following information):

    OS: Windows 11 fully updated
    Java-Version [e.g. 14] 1.8.0_421 and I have tried it in two other earlier versions with no change.
    Zettelkasten-Version
    Additional context
    The odd thing is that the files are shared on another laptop and the Zkn3 will successfully run on that one! The files are kept updated by DropBox, its got the same Windows 11 and updated as of yesterday and it runs Java 1.8.0_421.
    So the problem is some specific about my first lap

    Can anyone suggest why it might be doing this?
    Thank you.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,123
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Java programme will run on one computer but not the other

    Have you tried asking the programmer that wrote the program?
    Do you see any error messages?
    Have you tried running the program using the java command in a command prompt window?
    Open a Command Prompt window,
    change directories (cd command) to the directory holding the jar file,
    enter the command: java -jar <THE JAR FILENAME>.jar
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java programme will run on one computer but not the other

    Thank you for taking the time to reply, Norm.

    1) Programmer has not been seen for a couple of years now. A couole of people took over but they have no been seen much either recently.
    2) No error messages
    3) Success! Running the programme from the Command Prompt got it going and then it started from the .exe and from the shortcut too.

    Brilliant, a real result!

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,123
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Java programme will run on one computer but not the other

    If it works from a command prompt you can create a batch file(ends with .bat) that has the same command that you entered in the command prompt. Then clicking on the batch file will execute the java command line you entered.
    Also add a MORE command on the line following the line with the java command to keep the DOS window open until you close it.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Oct 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Re: Java programme will run on one computer but not the other

    Quote Originally Posted by Norm View Post
    If it works from a command prompt you can create a batch file(ends with .bat) that has the same command that you entered in the command prompt. Then clicking on the batch file will execute the java command line you entered.
    Also add a MORE command on the line following the line with the java command to keep the DOS window open until you close it.
    THats a brilliant suggestion. Thank you very much. You have been a great help.

Similar Threads

  1. Writing Java programme
    By Lakz in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 22nd, 2014, 03:45 PM
  2. Java programme design help
    By dulitul in forum What's Wrong With My Code?
    Replies: 7
    Last Post: September 29th, 2013, 06:06 PM
  3. Java programme to colour in a grid
    By why_always_me in forum Java Theory & Questions
    Replies: 20
    Last Post: March 29th, 2012, 06:09 AM
  4. How to call a java programme from an applet?
    By prativa in forum Java Applets
    Replies: 2
    Last Post: December 19th, 2011, 11:01 AM
  5. Java jar programme with a microcontroller
    By bczm8703 in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: September 11th, 2011, 08:01 AM