[SOLVED] Java could not find or load main class
I just tried to run a Java program using Swing components from the terminal, but I always get this error message:
$ java VisualTest
Error: Could not find or load main class VisualTest
The strange thing is that it runs flawlessly from within Eclipse.
I created VisualTest.java using the (old) Visual Editor, it's contents are:
package visual1;
import javax.swing.SwingUtilities;
//import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
public class VisualTest extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
* @param args
public static void main(String[] args) {
// TODO Auto-generated method stub
SwingUtilities.invokeLater(new Runnable() {
public void run() {
VisualTest thisClass = new VisualTest();
thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
thisClass.setVisible(true);
* This is the default constructor
public VisualTest() {
super();
initialize();
* This method initializes this
* @return void
private void initialize() {
this.setSize(300, 200);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setContentPane(getJContentPane());
this.setTitle("JFrame");
* This method initializes jContentPane
* @return javax.swing.JPanel
private JPanel getJContentPane() {
if (jContentPane == null) {
jContentPane = new JPanel();
jContentPane.setLayout(null);
return jContentPane;
As you can see, there is a class named VisualTest and it contains a main function.
My CLASSPATH variable contains a dot, like
.:/home/mk/.java/deployment/ext/*
I just updated my Java from JDK 7u67 to JDK 8u20 (the Oracle one, in AUR), but I can't imagine this is related (however, I haven't run Java programs from the terminal for a long time).
Strangely enough, a simple HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
runs flawlessly from within the terminal.
Last edited by Marcel- (2014-09-26 12:44:35)
As intended by my institution, I said to Eclipse that it should store sources and class files in the same directory. Let's do ls and test:
[~/workspace]$ ls
total 12K
drwxr-xr-x 4 mk mk 4.0K Sep 23 18:23 visualtest/
-rw-r--r-- 1 mk mk 426 Sep 24 15:45 HelloWorld.class
-rw-rw-r-- 1 mk mk 111 Sep 24 15:44 HelloWorld.java
[~/workspace]$ java HelloWorld
Hello World!
vs.
[~/workspace/visualtest/visual1]$ ls
total 12K
-rw-r--r-- 1 mk mk 528 Sep 24 15:38 VisualTest$1.class
-rw-r--r-- 1 mk mk 1.1K Sep 24 15:38 VisualTest.class
-rw-r--r-- 1 mk mk 1.2K Sep 24 00:32 VisualTest.java
[~/workspace/visualtest/visual1]$ java VisualTest
Error: Could not find or load main class VisualTest
I also tested this with another project that runs fine in Eclipse, but it gives the same error message when trying to issue `java StemOpPartijFrame`.
EDIT:
One difference between the two OSs though is that Linux progresses. The other decays..
Two? I count many! And I don't think something like OpenBSD decays. ;-)
Last edited by Marcel- (2014-09-24 16:54:12)
Similar Messages
-
Hi,
Am getting below error while performing ESRI shapefile into oracle database table.,
C:\>java -cp G:\app\product\11.2.0\dbhome_1\jdbc\lib\ojdbc14.jar;G:\app\product\
11.2.0\dbhome_1\md\jlib\sdoutl-1.0.jar;\G:\app\product\11.2.0\dbhome_1\md\jlib\s
doapi-1.0.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h localhost -p
1521 -sn orcl -u MDSYS -d selva -t shapes -f F:\saptial\Africa.shp -r 8307 -g ge
ometry
Error: Could not find or load main class oracle.spatial.util.SampleShapefileToJGeomFeature
Am using java version as ,
C:\>java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)
And also tried in MapBuilder its working fine.,but i need to import using java utility can any help me too this.,i had tried below this way and problem got solved .,
Before i have downloaded
sdoutl-11.2.0.jar and sdoapi-11.2.0.jar used it for import shp file ..
C:\>set ORACLE_HOME=G:\app\product\11.2.0\dbhome_1
C:\Users\SELVA>cd downloads
C:\Users\SELVA\Downloads>cd statplanet_zambia
C:\Users\SELVA\Downloads\StatPlanet_Zambia>cd map
located into particular path and set my oracle home
C:\Users\SELVA\Downloads\StatPlanet_Zambia\map>set ORACLE_HOME=G:\app\product\11.2.0\dbhome_1
C:\Users\SELVA\Downloads\StatPlanet_Zambia\map>java -classpath %ORACLE_HOME%\jdb
c\lib\ojdbc5.jar;%ORACLE_HOME%\md\jlib\sdoutl-11.2.0.jar;%ORACLE_HOME%\md\jlib\sdoapi-11.2.0.jar oracle.spatial.util.SampleShapefileToJGeomFeature -h localhost -p 1521 -s orcl -u MDSYS -d selva -t zambia -f map -r 8307 -g geometry
host: localhost
port: 1521
sid: orcl
db_username: MDSYS
db_password: selva
db_tablename: zambia
shapefile_name: map
SRID: 8307
db_geometry_column: geometry
Connecting to Oracle10g using...
localhost, 1521, orcl, MDSYS, selva, zambia, map, null, 8307
Dropping old table...
java.sql.SQLException: ORA-00942: table or view does not exist
Creating new table...
9 record(s) converted.
Done.
Thanks
Selva -
Could not find or load main class weblogic.WLST
Hi,
I am trying to run a python script to create JMS components for use with iHub and i got the following error message when i try to run the script:
C:\ihub\bin>java weblogic.WLST omipmihubwlscript.py weblogicjms Welcome1 http://<servername>:7111 OMIPMIHUBServer
Error: Could not find or load main class weblogic.WLST
I have run the setWLSEnv.cmd file and got the following output
C:\oracle\Middleware2\wlserver_10.3\server\bin>setWLSEnv.cmd
CLASSPATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_p
atch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\mod
ules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modu
les\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\sys_man
ifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic.
jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1/lib/ant-all.j
ar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\oracle\MIDDLE~2\patch_ocp37
1\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK17~1.0_1\lib\tools.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\oracle\MIDDLE~2\WLSER
V~1.3\server\lib\weblogic.jar;C:\oracle\MIDDLE~2\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\oracle\MIDDLE~2\WLSERV~1.3\server\lib\webservices.jar;C:\oracle\MIDDLE~2\module
s\ORGAPA~1.1/lib/ant-all.jar;C:\oracle\MIDDLE~2\modules\NETSFA~1.0_1/lib/ant-contrib.jar;"
PATH="C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDD
LE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\defa
ult\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\module
s\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bin;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\oracle\MIDDLE~2\patch_wls1036\profiles\default\native;C:\oracle\MIDDLE~2\patch_ocp371\profiles\
default\native;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64;C:\oracle\MIDDLE~2\WLSERV~1.3\server\bin;C:\oracle\MIDDLE~2\modules\ORGAPA~1.1\bin;C:\PROGRA~1\Java\JDK17~1.0_1\jre\bi
n;C:\PROGRA~1\Java\JDK17~1.0_1\bin;C:\app\paul.currie\product\11.2.0\client_2\bin;C:\app\paul.currie\product\11.2.0\dbhome_3\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Wind
ows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_13\jre\bin;;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x
64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8;C:\oracle\MIDDLE~2\WLSERV~1.3\server\native\win\x64\oci920_8"
Your environment has been set.
I am totally stuck at this point so any help would be much appreciated.
Cheers
PaulI have just tested both on a Windows and a Linux server and it works fine.
D:\oracle\product\Middleware\wlserver_10.3\server\bin>setWLSEnv.cmd
CLASSPATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\
product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;D:\oracle\product\JAVA_C~1\li
b\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\serve
r\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;D:\oracle\product\MI
DDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\pro
duct\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\sys_man
ifest_classpath\weblogic_patch.jar;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\web
logic_patch.jar;D:\oracle\product\JAVA_C~1\lib\tools.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.ja
r;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;D:\oracle\product\MIDDLE~1\modules\features\weblogic.ser
ver.modules_10.3.5.0.jar;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;D:\oracle\product\MIDDLE~1\mod
ules\ORGAPA~1.1/lib/ant-all.jar;D:\oracle\product\MIDDLE~1\modules\NETSFA~2.0_1/lib/ant-contrib.jar;
PATH=D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles
\default\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server
\bin;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin
;D:\oracle\product\MIDDLE~1\patch_wls1035\profiles\default\native;D:\oracle\product\MIDDLE~1\patch_jdev1111\profiles\def
ault\native;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\bin
;D:\oracle\product\MIDDLE~1\modules\ORGAPA~1.1\bin;D:\oracle\product\JAVA_C~1\jre\bin;D:\oracle\product\JAVA_C~1\bin;C:\
Program Files\Legato\nsr\bin;C:\PROGRA~2\CA\SHARED~1\ETPKI\lib;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C
:\Windows\System32\WindowsPowerShell\v1.0\;D:\oracle\Java\current\jre\bin;C:\PROGRA~2\CA\IDENTI~1\PROVIS~1\BIN;C:\Progra
m Files (x86)\CA\SharedComponents\CAM\bin;D:\oracle\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;D:\oracle
\product\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8
Your environment has been set.
D:\oracle\product\Middleware\wlserver_10.3\server\bin>java weblogic.WLST
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline> -
Error: Could not find or load main class
Hello everyone!
I have decided to finally start learning Java and am currently, and slowly, making my way through the tutorials. I am only on chapter 2 in the class section. While reading I came uponJava Tutorials Sample Code and wanted to try and compile it in netbeans. This is the code that it contained:
class BicycleDemo {
public static void main(String[] args) {
// Create two different
// Bicycle objects
Bicycle bike1 = new Bicycle();
Bicycle bike2 = new Bicycle();
// Invoke methods on
// those objects
bike1.changeCadence(50);
bike1.speedUp(10);
bike1.changeGear(2);
bike1.printStates();
bike2.changeCadence(50);
bike2.speedUp(10);
bike2.changeGear(2);
bike2.changeCadence(40);
bike2.speedUp(10);
bike2.changeGear(3);
bike2.printStates();
I did the following in order:
1) New project
2) Select Java under Categories and Java Application under Projects
3) I type BicycleDemo in the Project Name Field and click finish
4) I delete all the template code and paste the above code into the field
5) I click run and get the following error:
run:
Error: Could not find or load main class bicycledemo.BicycleDemo
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Any help would be greatly appreciated! Thanks!I have decided to finally start learning Java and am currently, and slowly, making my way through the tutorials. I am only on chapter 2 in the class section. While reading I came uponJava Tutorials Sample Codeand wanted to try and compile it in netbeans. This is the code that it contained:
class BicycleDemo {
1) New project
2) Select Java under Categories and Java Application under Projects
3) I type BicycleDemo in the Project Name Field and click finish
4) I delete all the template code and paste the above code into the field
5) I click run and get the following error:
run:
Error: Could not find or load main class bicycledemo.BicycleDemo
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Thanks for posting ALL of the info - most posters don't do that and it makes it hard to help them.
Your exception shows it is looking for 'bicycledemo.BicycleDemo' so the 'BicycleDemo' class is expected to be in a package named 'bicycledemo'. The code you posted and the code at the link does NOT use a package statement.
When you create a new project in NetBeans it will AUTOMATICALLY add a package name to the start of a new class file. So, unknown to you, it created a package named 'bicycledemo' and put the class file in it.
In step #4 you deleted the template code (which had a 'package bicycledemo' statement in it) and replaced it with the tutorial code.
Likely you didn't notice the package statement in the template before you deleted the template code.
package bicycledemo
.Add that package statement as the first line of the class source code.
You should generally ALWAYS put your code in a package. For some reasons many of the tutorials do NOT do that. -
Java.lang.RuntimeException: Could not find the OffLine WLST class
Installation of OIM On weblogic.
oracle/oim/xellerate/setup/setup.xml:443: The following error occurred while executing this line:
/oracle/oim/xellerate/setup/weblogic-setup.xml:196: java.lang.RuntimeException: Could not find the OffLine WLST class
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Tried to run this command ./wlst.sh
shows
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/weblogic/server/server/bin:/home/oracle/bea/modules/org.apache.ant_1.6.5/bin:/oracle/jdk/jre/bin:/oracle/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/home/oracle/bin:/oracle/jdk/bin
Your environment has been set.
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/oracle/weblogic/server/common/eval/pointbase/lib/pbembedded57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbtools57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbclient57.jar
Initializing WebLogic Scripting Tool (WLST) ...
Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST classtry Problem invoking WLST - Could not find the OffLine WLST class the last post on this thread, he claims to solve the problem...
-
RSPC Variant does not exist - Could not find or load print parameters
We are on BI 7.0 (support pack SAPKW70017). We recently freshed test system from production. After the refresh, we have problems opening all the process chains.
1. When I go to RSPC to open a process chain, I get many messages like this:
Variant &0000000067180 does not exist (there are different variant numbers)
Message no. DB612
Diagnosis
You selected variant &0000000067180 for program RSPROCESS.
This variant does not exist.
2. When I go to SM21 to check the system log, it displays many entries like below:
EJ F Could not find or load print parameters for step 1, job BI_PROCESS_TRIGGER/09134500
Documentation for system log message EJ F :
An error occurred during loading of the print parameters for a
background job step.
The print parameter record may have been deleted even though there was
a still a step that needed that data. This is an error as the
reorganization of the print parameters should prevent this from
happening.
To fix the problem, edit the step and save it, copy the job, or
schedule a new job. The print parameters will be regenerated in all
these cases.
3. I applied the OSS note 1169659 - Correction: Process variants not entered by BDLS. The Basis rerun BDLS. But it did not fix the problem.
Would appreciate if someone could provide any help.
Thank you.Hi Rebecca.
1) Please verify if exist process types called 'unknown job'. If exist: delete process types called 'unknown job' in your process chain. To do that please remove the chain from scheduling (menu bar > process chain > remove from schedule), afterwards switch the detail view on (menu bar > view) > right mouse click on the process type "unknown job" > displaying scheduled jobs > delete that job. After deletion of the 'unknown jobs' activate and schedule your process chain again.
2) After the removal of the 'unknown jobs' please check if the error messages with the missing variants pop up when calling your process chain disappears. If not, please implement and execute the attached report Z_FIND_JOBS_WITHOUT_VARIANT which deletes the jobs without variants.
I have already attached report as Report Z_FIND_JOBS_WITHOUT_VARIANT, you can download and create the report accordingly.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
REPORT Z_FIND_JOBS_WITHOUT_VARIANT.
data: l_t_job type table of tbtcp with header line,
l_s_varsel TYPE rsvar,
l_t_variant TYPE TABLE OF rsparams.
parameters: delete type rs_bool.
select * from tbtcp as job into table l_t_job
where progname = 'RSPROCESS'
and exists ( select * from tbtco
where jobname = job~jobname
and jobcount = job~jobcount
and status = 'S' ).
loop at l_t_job.
l_s_varsel-report = l_t_job-progname.
l_s_varsel-variant = l_t_job-variant.
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = l_s_varsel-report
variant = l_s_varsel-variant
execute_direct = 'X'
TABLES
valutab = l_t_variant
EXCEPTIONS
variant_non_existent = 1
variant_obsolete = 2
OTHERS = 3.
if sy-subrc <> 0.
write: / l_t_job-jobname, l_t_job-jobcount.
if delete = 'X'.
CALL FUNCTION 'BP_JOB_DELETE'
EXPORTING
JOBCOUNT = l_t_job-jobcount
JOBNAME = l_t_job-jobname
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC <> 0.
write 'not deleted'.
else.
write 'successfully deleted'.
ENDIF.
endif.
endif.
endloop.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
I hope I can be helpful.
Thanks,
Walter Oliveira. -
Getting the error " [java] Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class " while building the O2A 2.1.0 PIP. I am using the Design Studio 4.3.2 for building the O2A 2.1.0 PIP. Please let me know how to resolve this issue. Here I am enclosing the log file .
We have basically the same issue when we try to create the interpreter using the embedded method..
I was able to use the interpreter embedded in a java client as long as the weblogic jars were located in a weblogic install if I tried to use them from a maven repository no luck at all...
All of this worked easily in 9.2 now in 10.3 it seems more error prone and less documented.
I have seen close to a 100 posts on issues related to this so is there a document which outlines specifics....
We / I have used weblogic now for almost 10 years and moving from 8.1 to 9.2 was painful and we expected the move from 9.2 to 10.3 not to be soo bad but its proving to be as painful if not more painful than moving to 9.2. We seem to spend a good bit of our time working around issues in the next new release that were not in the previous one..
Any help would be appreciated I think we will open a support case but even that is more painful...
Any help would be greatly appreciated..
PS: We confirmed that all jars in the startweblogic classpath were in the startup. The server we have the embedded wlst instance is a managed server and we are using the component in a war... Are there any restrictions which we are unaware of.
Error we get is
1 [ERROR] com.tfn.autex.order.weblogic.QueueMaintenanceUtility.addQueue():217 Error Adding Queue wowsers JNDI Name wowsers Exception: Invocation Target exception while getting the WLSTOffLineScript path -
ADF Mobile : Could not find property inputvalue in class java.math.BigDecimal
I tried to add an input text item to the list view like below and received an error message while navigating out of the input text field.
"Could not find property inputvalue in class java.math.BigDecimal".
Can someone show me some pointers about what is wrong with the below code.
JDEV Version : 11.1.2.4
<amx:listView var="row" value="#{bindings.Empdtls.collectionModel}"
fetchSize="#{bindings.Empdtls.rangeSize}" styleClass="adfmf-listView-insetList"
id="lv1" editMode="true">
<amx:listItem id="li1">
<amx:tableLayout width="100%" id="tl1">
<amx:rowLayout id="rl1">
<amx:cellFormat width="10px" id="cf3"/>
<amx:cellFormat width="60%" height="43px" id="cf2">
<amx:outputText value="#{row.ClassCode}" id="ot3"/>
</amx:cellFormat>
<amx:cellFormat width="10px" id="cf4"/>
<amx:cellFormat width="40%" halign="end" id="cf1">
<amx:inputText value="#{row.bindings.Salary.inputValue}" simple="true" id="it41"/>
</amx:cellFormat>
</amx:rowLayout>
</amx:tableLayout>
</amx:listItem>
</amx:listView>Hi,
#{row.bindings.Salary.inputValue) doesn't access a binding in ADF Mobile. Use #{row.Salary} instead.
Frank -
Could not find the OffLine WLST class (WL 10.3)
Hi,
I am confused about this scenario, please help me.
I keep getting the below when I run the wlst.sh script.
Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class
So what I did was add weblogic.jar to the classpath in the script. But I still get the same error. However, if I run it from the command line without the -D option, I no longer get that error, but get one about abother missing class.
Here is my wlst.sh
# cat wlst.sh
#!/bin/sh
# set up WL_HOME, the root directory of your WebLogic installation
WL_HOME="/exec/products/weblogic/v10.3/bea/wlserver_10.3"
# set up common environment
. "${WL_HOME}/server/bin/setWLSEnv.sh"
CLASSPATH="${CLASSPATH}:${WL_HOME}/common/eval/pointbase/lib/pbembedded57.jar:${WL_HOME}/common/eval/pointbase/lib/pbtools57.jar:${WL_HOME}/common/eval/pointbase/lib/pbclient57.jar:${WL_HOME}/server/lib/weblogic.jar"
echo
echo CLASSPATH=${CLASSPATH}
"${JAVA_HOME}/bin/java" -Dprod.props.file=${WL_HOME}/.product.properties weblogic.WLST $*and here is the properties file it is using
# cat ${WL_HOME}/.product.properties
#Mon Nov 30 13:34:33 CET 2009
JAVA_HOME=/usr/java6_64
WLS_JAVA_HOME=/usr/java6_64
JAVAHOME=/usr/java6_64
PLATFORMHOME=/exec/products/weblogic/v10.3/wlserver_10.3
WLS_INSTALL_DIR=/exec/products/weblogic/v10.3/wlserver_10.3
javax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
java.vm.version=2.4
LOCALE=en
CONFIGWIZ_HOME=/exec/products/weblogic/v10.3/wlserver_10.3
java.vm.vendor=IBM Corporation
javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
WLS_JAVA_VENDOR=Unknown
javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
DOCSWEBROOT=http\://e-docs.bea.com/wls/docs103
NODEMGR_PORT=5556
BEAHOME=/exec/products/weblogic/v10.3/bea
WL_HOME=/exec/products/weblogic/v10.3/bea/wlserver_10.3So to sum up, when after adding weblogic.jar to the classpath, I still get the same error if I run the script where it uses the properties file.
However, if I run it without using the properties file, then I get
# java weblogic.WLST
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic.descriptor.DescriptorClassLoader
at weblogic.WLST.main(WLST.java:19)
Caused by: java.lang.ClassNotFoundException: weblogic.descriptor.DescriptorClassLoader
at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
at java.lang.ClassLoader.loadClass(ClassLoader.java:652)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 1 moreSo any ideas on how to get this working would be appreciated.Hi,
If you need access to WebLogic container code on top of WLST scripting API such as the scenario where a plain SE Java class needs to call a remote method on a Stateless/Stateful session bean for example - I find it is easier to include the generated wlfullclient.jar - just don't use this jar in an application managed servlet context.
For non-EE/ejb/web contexts (SE) use wlfullclient.jar generated from
$WLS_INSTALL\wlserver_10.3\server\lib>java -jar wljarbuilder.jarThen run your client with the above jar in the classpath like
java -cp .;wls/wlfullclient.jar org.eclipse.persistence.example.distributed.Clientthank you
/Michael O'Brien
http://www.eclipselink.org -
Hello all.
I've just installed arch, despite very little knowledge of linux (i had ubuntu for a short while before this), but I like a challenge so i thought i'd throw myself in at the deep end.
The installation went reasonably smoothly, but now i've got it up and running (with a minimal KDE install) but when I open up the konsole, I get the message
"Warning: Could not find '/bin/bash/', starting '/bin/sh' instead. Please check your profile settings."
and subsequently I cannot "su jake" (jake being my username, obviously). It requests my password, but when i press return I get the response
su: /bin/bash/: Not a directory
which means i've obviously done something wrong, but I cant make head nor tail of the archwiki on Bash, and from googling, I cant find anyone with a similar issue. I can run from root, but it's not ideal.
Thanks for any response as to why this might be happening, and how to fix it.
Last edited by hansolo128 (2012-04-24 08:55:37)@oxyd
sh-4.2$ cat /etc/shells
# /etc/shells
/bin/sh
/bin/bash
# End of file
root:x:0:0:root:/root:/bin/bash
jake:x:1000:100::/home/jake:/bin/bash/
the output of /etc/passwd is
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
mail:x:8:12:mail:/var/spool/mail:/bin/false
ftp:x:14:11:ftp:/srv/ftp:/bin/false
http:x:33:33:http:/srv/http:/bin/false
nobody:x:99:99:nobody:/:/bin/false
dbus:x:81:81:System message bus:/:/bin/false
jake:x:1000:100::/home/jake:/bin/bash/
usbmux:x:140:140:usbmux user:/:/sbin/nologin
mysql:x:89:89::/var/lib/mysql:/bin/false
kdm:x:135:135::/var/lib/kdm:/bin/false
avahi:x:84:84:avahi:/:/bin/false
moving my home directory from /bin/bash/ to /bin/bash on the line of my username now allows me to su jake, but it doesnt solve the warning that /bin/bash/ doesnt exist. -
Installation of OIM On weblogic.
oracle/oim/xellerate/setup/setup.xml:443: The following error occurred while executing this line:
/oracle/oim/xellerate/setup/weblogic-setup.xml:196: java.lang.RuntimeException: Could not find the OffLine WLST class
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Tried to run this command ./wlst.sh
shows
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:
PATH=/oracle/weblogic/server/server/bin:/home/oracle/bea/modules/org.apache.ant_1.6.5/bin:/oracle/jdk/jre/bin:/oracle/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/home/oracle/bin:/oracle/jdk/bin
Your environment has been set.
CLASSPATH=/home/oracle/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/oracle/jdk/lib/tools.jar:/oracle/weblogic/server/server/lib/weblogic_sp.jar:/oracle/weblogic/server/server/lib/weblogic.jar:/home/oracle/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/oracle/weblogic/server/server/lib/webservices.jar:/home/oracle/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/home/oracle/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/oracle/weblogic/server/common/eval/pointbase/lib/pbembedded57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbtools57.jar:/oracle/weblogic/server/common/eval/pointbase/lib/pbclient57.jar
Initializing WebLogic Scripting Tool (WLST) ...
Problem invoking WLST - java.lang.RuntimeException: Could not find the OffLine WLST class
Edited by: user10213645 on Mar 9, 2010 3:37 PMThere is an existing Bug 8431390 - WLST NOT WORKING IF WE USE NON-DEFAULT INSTALLATION (WL_HOME OUTSIDE BEA_HOME)
As per this bug, the issue can be reproduced as follows:
Steps to reproduce:
1. Install WLS 10.3GA (essex) kit in a non-default fashion (WL_HOME outside BEA_HOME)
2. Go to ur $WL_HOME/common/bin directory and execute wlst.cmd
3. It exits with the following exception:
java.lang.RuntimeException:could not find the OffLine WLST class
Hope this helps.
For more details, refer: http://idm-oracle.blogspot.com/2010/03/javalangruntimeexception-could-not-find.html -
URGENT: Could not find the custom class
Hi,
I'm moving from 3.1->3.2
I loaded the AppModule developed with 3.1 under which it is working ok. Now I get the following error from Appmodule tester:
JBO-26022: Could not find and load the custom classs Ingreso.EntityImpl
Any help regarding to subject matter is appreciated.
nullHi again,
I'm not sure if there's a missunderstanding here.
When yawmark told you to type the command exactly as I had posted it (period included), he did not mean that you should type ".class" after the name of your class, but a period after the "-cp" (separated by a space). So, again:
In your command window, go to the directory where your Javax class is located, and type:
java -cp . Javax(NOTICE THE PERIOD after -cp, that's the important thing). To make sure, you can copy-paste the line above, but make sure you're executing it from the directory where Javax is located. -
Could not find a valid Java virtual machine to load
On a fresh copy of CFMX8, when I run updater 7, it responds
'Could not find a valid Java virtual machine to load'.
This is being installed on a Win2K3 server and this is on a
'freshly minted' POC box solely for the purpose of
installing/testing CFMX8 to determine how it compares to our
CFMX6.1 environment.
You will notice that it is NOT being installed in the default
directory:
JRun Version Information
Vendor Macromedia
Product Name JRun 4.0
Build Number 108487
Version Full Version
License Type Trial License
Serial Number JRD400-69341-58259-30688
JRun 3.x Serial Number
Restricted to Single IP No
Installation Root D:\ISG\software\jrun4
Expiration Date Mar 29, 2008
Evaluation Days Remaining 29
JDK path (JAVA_HOME): D:/ISG/software/jrun4/jre
I do find it curious that I can run the Updater 6, and it
seems to behave properly (it finds the VM). I ran it just as a
test, then wiped everything to start over from scratch. For some
reason do I need to direct Updater 7 to the installation that I did
not have to do in Updater 6?
Thank you in advance for your assistance - Jacquestried executing the following cmd, below is the following error:
<<command i executed>>
C:\Program Files\Java\jre1.5.0_09\bin>java -classpath "C:\Program Files\Java\jre1.5.0_09\lib\javaws.jar" com.sun.javaws.Main https://<IPddr>:8443/sample.jnlp
Can you pls let me know how it can be resolved?Umm.. I am not sure, but I will start with
a question. Why not do it this way?C:\Program Files\Java\jre1.5.0_09\bin>javaws https://<IPddr>:8443/sample.jnlp -
Error:-could not find the main class programe will exit(Java virtual mach)
Hi,
i changed the mainfest file for an executive jar file(judge.jar) using the command on dos :-"jar cvfm judge.jar c:\judge\MAINFEST.MF -C judge/ ." , but when i run this jar file again after making changes in mainfest file it is not working. an error encounter like "could not find the main class programe will exit how to solve"(Java virtual machine launcher).please suggest me how to solve this error.
Thanks
Ashwani GuptaHi,
mainfest file has a entry like "main -class: judge.repository.corpus"
please tell me the solution of this error i am doing internship in national university of singapore......and my project is related to data mining.I am using judge.jar when i extract this jar files i saw there was no main-class in manifest file so i change it and make it again jar file using dos command.please suggest me how i can reomove this error.
Thanks in advance.
Ashwani -
Could not find the main class. & java.lang.NoClassDefFound error:
sir / madam
I am facing problems with j2ksdk1.4.0 beta instalation on my windows 2000 advance server.
while installing pops up a message saying could not find the main class.
while using java or javac it says
Exception in thread main
java.lang.NoClassDefFound error:
com/sun/tools/javac/main
even when double clicking java plugin from the control panel
I get the Java virtual machine launcher saying could not find the main class.
I don't have any other java sdk installed.
And i have my environment variables (classpath, path and java_home) set correctly.
this same j2sdk1.4.0 version is installed in the windows 98 system and it's working fine.
Kindly do help me to solve this problem.
eagerly awaiting for your response.
Thanking you
Sajeev Nair
[email protected]you must check with the classpath
please see that you have not repeated %classpath%
at the end of the class path like you do in win98.
similiarly with %path%
in win2000 it is automatically taken care off.
Maybe you are looking for
-
Dear Sap experts, I am using mb1c 501 mv type.While doing it I am giving vendor no . Posting & creation of material , accounting document is ok. But how can I see the laibilities getting transfered to vendor account. In fk10n or fbln1n there is no re
-
My Apple ID is not letting me download apps it tells me to enter account details then it says that the payment processing is currently unavailable. I don't know what's wrong but can anybody help me out here
-
Identify special characters that are not supported by an embeded font
Hi! I'm useing embeded fonts as CFF in my flex 4.5.1 application and I have problems with the special charcters like Ă, Â, Î, Ș, Ț or arabic text, that are not included in my embeded font. This are displayed in my RichEditableTect component useing t
-
Dear Sap gurus, Could you please cost center wise budget confuration and availabulity control in system . purchase value 100000 Name is Cost center1 if i raise of purchase order (Relevant account assignment items) Cost center given then the system s
-
Users and Groups displayed twice in OAM
We have configured OID in OAM as identity server. Seems successful but I am able to see twice all the users , groups in OAM. Please give some ideas how to trouble shoot the same.