• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in Eclipse and Netbeans

 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to everyone,

I write Java codes, but I face syntax & runtime errors both in Eclipse and NetBeans.

The source codes are from Sun.com. I copy-paste, but see the errors. I am careful class name.

Eclipse Message = Prints the ASM code to generate the given class.
Usage: ASMifierClassVisitor [-debug] <fully qualified class name or class file name>

NetBeans Message = no Main class found

How can I solve my problem?

Thank you
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what the eclipse error means but the netbeans error is simple. There is no main method thus no entry point in the program. Maybe if you showed some code we could help you further.
 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Wouter,

I don't like to copy-paste the whole source code here. But I am trying to find an answer. Guess that, you wrote a source code with Eclipse, code was from Sun's page. It had no syntax error. you made the essential changes about class name. You run your code. Eclipse said:

"Serap_Text_Demo.Main class wasn't found in Serap'sProject." What would you do?

 
Lorand Komaromi
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serap Elbeyoglu wrote:"Serap_Text_Demo.Main class wasn't found in Serap'sProject." What would you do?


I'd check if the class exists in the project.
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd also avoid punctuation characters other than the underscore in file ad folder names. Don't know whether it's the case here, but a name like "Serap'sProject" sure looks like a possible source of grief.
 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey friends, thank you for your replies. they were helpful. but I couldn't solve the trouble.

any ideas?
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Serap!

Is there a stack trace? If so, please paste it here so we can try to help you in a more concise way.
 
Serap Elbeyoglu
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Roberto, here is the source code from Sun's page. Actually is has no syntax or another errors. In NetBeans IDE 6.8, firstly I open a new project. Secondly, I think this source code is an application, so I click application button. I make the class name "TextDemo", because of source code's class name. But I want to understand why I cannot run this application.



Thank you all, for your interest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic