Skip to main content

developerWorks >  Rational  >  Forums  >  Enterprise Generation Language (EGL) and Rational Business Developer (RBD)  >  developerWorks

EGL tutorials RBD 7.1 - create a hello world program    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Jun 27, 2008 5:58 PM Last Post By: go_Portugal Threads: [ Previous | Next ]
go_Portugal

Posts: 2
Registered: Jun 13, 2008 11:33:06 AM
EGL tutorials RBD 7.1 - create a hello world program
Posted: Jun 13, 2008 11:56:48 AM
Click to report abuse...   Click to reply to this thread Reply
Greetings,

I am brand new to the world of EGL programming and so far its not my favorite (so please keep your laughs at a minimum). I have tried many tutorials and usually I always end up receiving an error near the end of the tutorial and my project not functioning properly... getting pretty frustrated....

Let's start simple, I just ran through the Create A Hello World Program Tutorial packaged with my software. It is very straightforward, and basically what this is what I understood I was doing..

1) Create a helloMain.egl file which basically just has a main function that calls writeStdOut("Hello");
2) Generate the Java source code from the EGL code. This creates a JavaSource folder with a package inside containing helloMain.java
3) Then I right click, and select Run As > Java Application and I get the following errors:
--> A dialog box that says: "Could not find the main class. Program will exit"
--> The console reads:

java.lang.UnsupportedClassVersionError: hello/helloMain (Unsupported major.minor version 49.0)
+ at java.lang.ClassLoader.defineClass0(Native Method)+
+ at java.lang.ClassLoader.defineClass(ClassLoader.java:539)+
+ at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)+
+ at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)+
+ at java.net.URLClassLoader.access$100(URLClassLoader.java:55)+
+ at java.net.URLClassLoader$1.run(URLClassLoader.java:194)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at java.net.URLClassLoader.findClass(URLClassLoader.java:187)+
+ at java.lang.ClassLoader.loadClass(ClassLoader.java:289)+
+ at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)+
+ at java.lang.ClassLoader.loadClass(ClassLoader.java:235)+
+ at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)+
Exception in thread "main"<hr />
Can anyone please help me? Is RBD 7.1 really this hard to use (surely not) ???

Thanks!
go_Portugal

Posts: 2
Registered: Jun 13, 2008 11:33:06 AM
Re: EGL tutorials RBD 7.1 - create a hello world program
Posted: Jun 13, 2008 01:40:54 PM   in response to: go_Portugal in response to: go_Portugal's post
Click to report abuse...   Click to reply to this thread Reply
Nevermind I figured it out. My JRE System library was set to the wrong place!!!
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums