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 4 of 4

Thread: [Newbie] Help with add-on!

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [Newbie] Help with add-on!

    So I'm not really the one organizing and coding this add-on for gaming servers in a clan I'm in. (cod2, cod4, etc.)

    The one coding the Mac version of the add-on is doing it in Java.
    I'm trying to test out this, close to final, version of the add-on, but I get an error that is yet to be resolved. I need fast help or any help would be appreciated!

    Mac OS X 10.7.3 Java SE 6

    Error:

    Error : java.io.FileNotFoundException: null/.jffaddon/debug/debug.log (No such file or directory)

    I Hit OK* and Window reappears x3

    Then: The java JAR file "Addon_Client.jar" could not be launched window.

    ScreenShot: http://uploads.justforfun-gaming.com...52_24%20PM.png

    Please help me .


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: [Newbie] Help with add-on!

    doing it in Java
    Can't be. If they were really doing it in Java, you wouldn't get that error message. To get a File path that starts with "null/", they must have concatenated String literals and that's just not Java. Suggest to the author they employ the constructors available in the java.io.File class for making File paths.

    Alternatively - I don't know Mac OS X, but have heard it might be based on BSD so it should have Unix like file paths? Try creating a directory named "null" in the applications current working directory (that might be your home), with a sub-directory .jffaddon, then one called debug. Since the code is lamely attempting to open that string literal path, it might even just work!

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [Newbie] Help with add-on!

    The app name is Addon_client.jar Opens with jar launcher. I also know that the way it is set up is that the updater to the master server is the same way as how say minecraft uses their update system.

  4. #4
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: [Newbie] Help with add-on!

    Sorry when I say "Not Java" I'm not being very helpful. It has of course been compiled with the Java compiler and is running with the Java RE. It's just crap code - concatenating Strings to make file paths is bad Java. Concatenating Strings to make file paths is a very common thing for bad Java programmers to do.

    My suggestion - to create that path starting with a directory called "null" in the application's working directory - would probably get you past that error message. If they've created a file path that way, they may well have included more non-portable code that will be as hard or harder for you to kludge your way around. It's not your fault it doesn't work - it's badly written. What you really need to do is to complain to the author.

    I see mention of a 'MAC[sic] version" here:
    Addon Client MAC v1.09
    - is that the file you downloaded?

Similar Threads

  1. Newbie here :D
    By maryzark19 in forum Member Introductions
    Replies: 1
    Last Post: October 10th, 2011, 10:43 AM
  2. Newbie help please
    By RIB in forum Member Introductions
    Replies: 3
    Last Post: August 16th, 2011, 02:29 PM
  3. Help to a newbie!
    By painthygrave in forum AWT / Java Swing
    Replies: 0
    Last Post: April 7th, 2010, 10:29 PM
  4. another newbie..
    By xdigg in forum Member Introductions
    Replies: 0
    Last Post: February 15th, 2010, 07:51 AM
  5. I'm a newbie
    By r12ki in forum Member Introductions
    Replies: 2
    Last Post: June 1st, 2009, 06:38 AM