Results 1 to 3 of 3
  1. #1
    MW130 is offline Senior Member
    Join Date
    Jan 2013
    Posts
    317
    Rep Power
    2

    Default Problem with textedit/wordpad

    So I use textedit to compile ( I like barebones software ), and I am very new to Java. I have two classes, one is "MyApp", and the other is "Runit". What I am trying to do is make myapp a constructor and then just put new Myapp() into Runit, but it will not let me. I made both classes two separate java files under the package "mike". What am I doing wrong here? This is the error I am getting:
    Java Code:
    Runit.java:4: error: cannot find symbol
    new MyApp();
        ^
      symbol:   class MyApp
      location: class Runit
    1 error

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,357
    Rep Power
    6

    Default Re: Problem with textedit/wordpad

    Who knows? You don't post the code, so impossible to say which of the dozens of mistakes you can be making is the winner.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Problem with textedit/wordpad

    Also, how are you compiling it?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 11-07-2012, 01:44 PM
  2. Small problem with problem with Java, C++ parse program.
    By dragstang86 in forum New To Java
    Replies: 4
    Last Post: 10-30-2011, 04:43 AM
  3. Replies: 9
    Last Post: 09-21-2010, 05:15 PM
  4. simple line problem / for loop problem
    By helpisontheway in forum New To Java
    Replies: 1
    Last Post: 11-17-2009, 07:12 AM
  5. Wordpad help.
    By JavaNewbie0000 in forum New To Java
    Replies: 5
    Last Post: 07-30-2008, 01:28 PM

Posting Permissions

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