[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Running a new drools project in Eclipse 3.2

Posted on 2006-07-19
10
Medium Priority
?
756 Views
Last Modified: 2012-08-14
hi!  

Has anybody worked on eclipse IDE on drools rule engine?  I add the plugin in 3.2 and created a new drools project.  It comes with a drl file  "Rule.java.drl"  and a test file (with a main class in it) "DroolsTest.java".  The project should run as it is acorrding to docs but is giving an error

"could not find main class, program will exit"

Somehow cannot find the main class?  Any clue why? I think I have all the classpath set.

0
Comment
Question by:subirc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 

Author Comment

by:subirc
ID: 17137558
Any help appreciated --- thanks!!! I must be missing something in eclipse configuration

0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17137981
How exactly are you running? Did you right-click on DroolsTest.java and select Run As -> Java Application, or select from the Run menu -> Run As -> Java Application.
0
 

Author Comment

by:subirc
ID: 17143680
Tried both -  didn't work either way
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:subirc
ID: 17143860
This is the error I am getting.....

java.lang.UnsupportedClassVersionError: org/drools/RuleBase (Unsupported major.minor version 49.0)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$100(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 120 total points
ID: 17143865
Oh then its a version error. That class was developed for a different version of Java and your default version in the Eclipse project is something else. Try changing the JRE in Eclipse (for this project) to point to another version.
0
 

Author Comment

by:subirc
ID: 17143984
do you mean jdk1.5?  I have 1.4.2 and I also tried with the IMB_jre that comes when you install Websphere........
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17144032
Well I'm not sure which version drools needs. Maybe it needs Java 5 - you can try installing the runtime for that from Sun's site http://java.sun.com/j2se/ and configure it with Eclipse (you can have multiple JREs installed on a machine but the one that matters for Eclipse is the one the project is configured with).
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17144345
Which version did you try?
0
 

Author Comment

by:subirc
ID: 17145596
jre 1.5.0_04  from sun  
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 17145727
Any reason for the B grade?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question