Results 1 to 4 of 4
  1. #1
    QNinja is offline Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    0

    Default Classes like Linux but not Windows 7?

    I'm working my way through the book, "Head First Java," and it's helped me make more progress than those dusty old school books, but whenever I try to create and compile a source file that has classes in it while using Windows 7, the JVM throws a fit. However, when I compile and run the exact same code inside of my Ubuntu box, it runs perfectly well. I can post output from my Windows box tomorrow, but I'd like to know if anyone else has had this issue and if it can be solved. Thanks in advance for any advice!

    Note: Code compiles and runs like a charm on my Windows box, just as long as there aren't any classes. Only procedural programming works within the main class.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    It's hard to say without the exact problem. If you don't have access to your windows box right now, would you mind summarizing the problem? "it throws a fit" isn't very helpful.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,240
    Rep Power
    19

    Default

    Java Code:
    Exception fit = new Exception("Throwing a fit");
    throw fit;

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,415
    Rep Power
    25

    Default

    as long as there aren't any classes
    That is hard to understand, as ALL java code ends up as classes. Classes are what the JVM reads and executes.

Similar Threads

  1. ObjectInputStream() for Linux and Windows
    By eh1476 in forum Threads and Synchronization
    Replies: 0
    Last Post: 03-04-2011, 09:52 PM
  2. One program for both Windows and Linux
    By satimis in forum New To Java
    Replies: 8
    Last Post: 04-12-2010, 09:49 AM
  3. Errors running app in linux but not in Windows
    By JohnST in forum New To Java
    Replies: 3
    Last Post: 03-12-2010, 01:58 AM
  4. Replies: 3
    Last Post: 01-21-2010, 01:51 AM
  5. Replies: 6
    Last Post: 04-08-2009, 04:05 AM

Tags for this Thread

Posting Permissions

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