This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Running scala program in eclipse gives scala Throwable during asyncExec Malformed class name

 
Ranch Hand
Posts: 1360
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running the below scala program in eclipse but I get an error message Throwable during asyncExec
Malformed class name



Running the Hello world with singleton object works fine.
thanks
 
Saloon Keeper
Posts: 11462
247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help us if you give us the entire stack trace. Also tell us how you're running the application. I see nothing related to "Hello world" or "asyncExec".

For future reference, please ALWAYS post an exception stack trace when you get an exception, and not just the message.
 
Monica Shiralkar
Ranch Hand
Posts: 1360
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Scala IDE build of Eclipse SDK

I am running as right click run as scala application.
This hello world example runs fine.



When I run this code it gives error:


a popup comes as soon as I do right click and even before I click as run as scala application.

It says a problem occurred with red cross sign and . On clicking on details it shows the same message thing "Throwable during asyncExec
Malformed class name"
 
Marshal
Posts: 25150
64
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand correctly, you are describing what happens when you right-click on something in Eclipse. Am I right?
 
Monica Shiralkar
Ranch Hand
Posts: 1360
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes but this happens only in case I create a class.  The hello world program which I listed above and has singleton object works fine with right click and run as scala application but I can't do that in the second program where as soon as I do right click it gives that error
 
Rancher
Posts: 4492
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the second class is not executable is it?
It has a main mehtod, but it is not a singleton, so I'm guessing it can't figure out the entry point for the app.
 
Monica Shiralkar
Ranch Hand
Posts: 1360
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dave Tolls wrote:Well, the second class is not executable is it?
It has a main mehtod, but it is not a singleton, so I'm guessing it can't figure out the entry point for the app.



Thanks. It was a mistake.  Since this code has main method but no singleton object, it cannot be run by right click and run. I called this from another class which was singleton  and it worked fine.
 
Paul Clapham
Marshal
Posts: 25150
64
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a useful thing to know for Eclipse/Scala users.
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!