Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
can anyone what kind of problem is this iam not able to run java but i'm able to compile using javac command...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Location
    hands of havenly father Karunya university in coimbatore
    Posts
    6

    Cant java in Ubuntu But javac is running

    can anyone what kind of problem is this iam not able to run java but i'm able to compile using javac command

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,302
    Are you getting a specific error?

    Is your classpath set correctly?
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Just Joined!
    Join Date
    Sep 2008
    Location
    hands of havenly father Karunya university in coimbatore
    Posts
    6
    ya its set correctly

  4. #4
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,302
    Any error message?
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  5. #5
    Just Joined!
    Join Date
    Sep 2008
    Location
    hands of havenly father Karunya university in coimbatore
    Posts
    6
    ya i get Exception in filename, main not found Exception

  6. #6
    Just Joined!
    Join Date
    Dec 2005
    Posts
    96
    Do you have public static void main(String[] args) {} method in your source file? And is you filename is the same as your class name?

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    it would be helpful to see the full stack trace

  8. #8
    Just Joined!
    Join Date
    Sep 2008
    Location
    hands of havenly father Karunya university in coimbatore
    Posts
    6
    ya thats all are correct i think there is some problem in JVM

  9. #9
    Just Joined!
    Join Date
    Sep 2008
    Location
    hands of havenly father Karunya university in coimbatore
    Posts
    6
    how to see the stack tree

  10. #10
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    run your java program with command line and post exact output

Page 1 of 2 1 2 LastLast

Posting Permissions

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