Win a copy of Terraform in Action this week in the Cloud 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Ranch Hand
Posts: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 13427
302
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 26915
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4801
50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2550
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 26915
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a useful thing to know for Eclipse/Scala users.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic