Nick de Waal

Ranch Hand
+ Follow
since Feb 19, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nick de Waal

Thanks Kemal,

That's what I needed to know, I did not even realize the build command would create the jar file (oh man I have lots to learn)
I don't have enough experience yet
thanks for your help
Hi Kemal,

Sorry I am finding it hard to explain this, I bought a small application off someone and he sent me it in jar file but he also sent me the source code.
My idea was to replicate the program to see if I could do it.
But now, I only want to change some parts to it so I was hoping there was a way I could open the program in netbeans and edit the source code and so on.
So I guess I could just open all the source code in netbeans and then change that and save it as a new project.
I just wanted to learn from it but because it has database as well it has now become a little daunting to me as it above my expertise.
But I will try and dissect it.

thank you
Hi all,

I was hoping that someone would be able to point out a guide for me that will show/teach me how I can
  • open a Jar file with Netbeans
  • edit it
  • and then package it again


  • I tried opening it by making a new project and adding the Jar file to the library but my changes do not save.
    I realize I should know this and it may well be rather simple but for the likes of me I have not yet needed to do this
    (I am looking through my course materials and cannot find the answer, it does teach how to make a project in netbeans and then make that a jar file, but nothing about changing a Jar file in netbeans.

    any help or links would help me considerably
    Thanks Bear,

    I should of mentioned that I am not a young student, I am nearing my 40's and this is a career change so I do have experience as an employee, just none in IT.
    not sure if that will make a difference

    12 years ago
    Hi all,

    I'm a couple of weeks away from graduating and have been offered a job as a test analyst,
    I have searched the net to get an idea of what the job involves but from what I see I am worried I don't have the skills to fulfill this role.
    After speaking to the job placement adviser he said they will train me and that the most important skill I need is communication.
    I am not confident that with the limited IT training I have received in the last year that I am capable of doing the job.

    I was wondering if anyone could ease my worries and let me know how easy the job is


    12 years ago

    Yong Lee wrote:So I'm a little stumped...the following code produces this output:

    triangle 0, area = 4.0
    triangle 1, area = 10.0
    triangle 2, area = 18.0
    triangle 3, area = 28.0
    y = 4, t5 area = 343


    What has me stumped is the last line of output...I understand that both t5 and ta[2] are pointing to the same Triangle object, and that by setting ta[2].area = 343, t5.area will also = 343. But where does "y = 4" come from - if y = x, and x is set as 27, where is the value changed to 4? Any help would be appreciated, thanks!
    [ May 26, 2008: Message edited by: Campbell Ritchie ]


    I realize this is an old post but I run the exact same code as above (chapter 3 HeadFirstJava),
    and I receive the following :
    12 years ago
    I have these batch files :

    1:

    2:

    3:

    which saves me time, but I was wondering what could I change or need to change in order to do the same thing for two classes in the same package?
    12 years ago
    Hi Henry,

    Thank you for taking the time for the explanation, as with most newbies (I'm guessing) we don't use the command line enough,
    I am learning a little batch programming now, so that I can be more independent.

    Thanks again.
    12 years ago
    Henry that's it!!

    Thank you,
    if I may ask, would you be able to give me a small explanation as to what is going on? I mean, using the "." instead of what I was doing.

    Or maybe point me to an explanation on the web.
    It would be much appreciated
    thanks again
    12 years ago
    Hi Henry,
    Actually I did mention it although I was rather vague, my apologies,
    so here is a copy of the code as it stands:





    12 years ago
    I have tried your suggestion and receive the exact same error as above:
    12 years ago
    I will post exactly what I am doing, so this way, I will hope to find out what I am doing wrong:

    12 years ago

    Steven Bruton wrote:You have 6 compile errors in your code, that is why it will not compile.

    Just some spelling errors;
    The boolean p3isRIght should be p3isRight,
    You made a call to guesse() 3 times but the method name is guess().



    Hi Steven,

    Thank you,
    yes you are right and I should be banned for posting that code without checking!
    but I did fix up those errors (I just have not posted the fixed code.

    I actually reverted back to netbeans to test my code and it works fine:
    Result:

    run:
    I'm thinking of a number between 0 and 9...
    Number to guess is 1
    I'm guessing 6
    I'm guessing 3
    I'm guessing 2
    Player one guessed 6
    Player two guessed 3
    Player three guessed 2
    Players will have to try again.
    Number to guess is 1
    I'm guessing 3
    I'm guessing 0
    I'm guessing 1
    Player one guessed 3
    Player two guessed 0
    Player three guessed 1
    We have a winner!
    Player one got it right? false
    Player two got it right? false
    Player three got it right? true
    Game Over!
    BUILD SUCCESSFUL (total time: 1 second)



    So it has to be how I am trying to compile it on the command line
    I found this site http://javaworkshop.sourceforge.net/chapter3.html and have been trying to follow it by making the test folder etc.
    I am still having no luck but give me a few moments and I will post the errors I am getting.
    12 years ago

    Stephan van Hulst wrote:You probably haven't specified the classpath, so the compiler doesn't know where to look for game\GuessGame.java.

    In the command line, go to the folder that contains the game folder, and try: "javac -cp . game\GuessGame.java"



    I tried this already having found it on another post, but unfortunately I still receive similar errors:

    C:\Users\Sonny\Documents\Head1stJava\src>javac -cp . game\GuessGame.java
    game\GuessGame.java:24: error: cannot find symbol
    p1.guesse();// call each players guess method
    ^
    symbol: method guesse()
    location: variable p1 of type Player
    game\GuessGame.java:25: error: cannot find symbol
    p2.guesse();
    ^
    symbol: method guesse()
    location: variable p2 of type Player
    game\GuessGame.java:26: error: cannot find symbol
    p3.guesse();
    ^
    symbol: method guesse()
    location: variable p3 of type Player
    game\GuessGame.java:46: error: cannot find symbol
    p3isRight = true;
    ^
    symbol: variable p3isRight
    location: class GuessGame
    game\GuessGame.java:49: error: cannot find symbol
    if (p1isRight || p2isRight || p3isRight) {
    ^
    symbol: variable p3isRight
    location: class GuessGame
    game\GuessGame.java:54: error: cannot find symbol
    System.out.println("Player three got it right? " + p3isRight)
    ^
    symbol: variable p3isRight
    location: class GuessGame
    6 errors



    12 years ago
    the error is:

    GameLauncher.java:4: error: cannot find symbol
    GuessGame game = new GuessGame();
    ^
    symbol: class GuessGame
    location: class GameLauncher
    GameLauncher.java:4: error: cannot find symbol
    GuessGame game = new GuessGame();
    ^
    symbol: class GuessGame
    location: class GameLauncher
    2 errors
    12 years ago