Problem trying to run program
I get the following error when i try run my program, which is a simple printing hello world. I am trying to get the compiler on my laptop working.
C:\Users\Taurus>javac test.java
C:\Users\Taurus>java test
Exception in thread "main" java.lang.NoClassDefFoundError: test
Caused by: java.lang.ClassNotFoundException: test
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)This is the program:
import java.io.*;
public class test
public static void main (String[] args)
System.out.println("hello world!");
Edited by: The_One on Sep 6, 2008 9:59 AM
Check your environment variables. It looks like you have a CLASSPATH that doesn't include the current working directory ( . )
db
Similar Messages
-
Error when trying to run "Program - Publish FSG Report"
We're using 11i (11.5.10.2) version
I am trying to run 'Program - Publish FSG Report' but receiving the following error message in the View log file on "Financial Statement Generator (XML Report Publisher)".
XML Report Publisher 5.0
Updating request description
Waiting for XML request
Retrieving XML request information
Preparing parameters
Process template
--XDOException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:473)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:188)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1766)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1277)
at oracle.apps.xdo.oa.cp.JCP4XMLPublisher.runProgram(JCP4XMLPublisher.java:807)
at oracle.apps.fnd.cp.request.Run.main(Run.java:148)
Caused by: oracle.xdo.parser.v2.XMLParseException: End tag does not match start tag 'fsg:RptLine'.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.XMLReader.popXMLReader(XMLReader.java:526)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1287)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 16 more
Ref Publish FSG: Error: XML: XDOException, End Tag Does Not Match Start Tag [ID 339009.1]
I tried to apply the patch#12700905, then retest the issue, but I receiving the following error message in the output file on "Program - Publish FSG Report"
DECLARE
ERROR at line 1:
ORA-06550: line 133, column 8:
PLS-00306: wrong number or types of arguments in call to 'SUBMIT_XML_REQUEST'
ORA-06550: line 133, column 5:
PL/SQL: Statement ignored
Has anybody can help me?
Thanks
SamHi Sam.
You will need to apply Patch 5728162 . To see the complete solution see MOS Doc ID 787396.1
Hope this helps.
Octavio -
Failure to launch problem trying to run any .jnlp
Hello everyone,
I have been trying to run a program to help me study for my medical board exams and it uses java web start. I have tried to run the demo program off of the java website as well and I keep getting the same error.
Unable to Launch download error
An error occurred while launching/running the application.
Title: Draw 4 App
Vendor: Sun Microsystems, Inc.
Category: Download Error
Unable to load resource: http://java.sun.com/products/javawebstart/apps/draw.jnlp
Launch File
?xml version="1.0" encoding="utf-8"?>
<!--
# @(#)draw.jnlp 1.6 02/09/11
# JNLP File for Draw Demo Application
-->
<jnlp spec="0.2 1.0"
codebase="http://java.sun.com/products/javawebstart/apps"
href="draw.jnlp">
<information>
<title>Draw 4 App</title>
<vendor>Sun Microsystems, Inc.</vendor>
<homepage href="http://java.sun.com/products/javawebstart/demos.html"/>
<description>A minimalist drawing application along the lines of Illustrator</description>
<description kind="short">Draw Demo Short Description</description>
<icon href="images/draw.jpg"/>
<offline-allowed/>
</information>
<resources>
<j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
<j2se version="1.3+"/>
<jar href="draw.jar" main="true" download="eager"/>
</resources>
<application-desc main-class="Draw"/>
</jnlp>
Exception
JNLPException[category: Download Error : Exception: java.net.ConnectException: Connection refused: connect : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Wrapped Exception
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at com.sun.javaws.net.BasicNetworkLayer.doRequest(Unknown Source)
at com.sun.javaws.net.BasicNetworkLayer.doHeadRequest(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at com.sun.javaws.cache.DownloadProtocol.isLaunchFileUpdateAvailable(Unknown Source)
at com.sun.javaws.LaunchDownload.getUpdatedLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.downloadResources(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Sorry I didn't know exactly what info was needed to help with my problem so I just included everything it gave me. I have tried disabling my symantec antivirus, windows firewall and defender, but have had no success. Any help would be tremendously appreciated.
Thanks,
Cory Maughansounds like it is not getting the proxyie information correctly.
open the java console network settings tab and check what proxies are being used.
/Andy -
Problems trying to run JDeveloper 9.0.2 on Linux
Dear All,
I am facing problems while trying to run JDeveloper 9.0.2 (release 2) on my Linux machine.
When I invoke jdev/bin/jdev file, the well-known JDeveloper window starts up, but in my console I keep on getting the following error:
JDeveloper Error:
java.lang.NoSuchMethodError
at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
at oracle.ide.model.DataNode.open(DataNode.java:75)
at oracle.jdeveloper.model.JProject.open(JProject.java:177)
at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
at oracle.bm.commonIde.ModelersServices.initialize(ModelersServices.java:423)
at oracle.ide.AddinManager._registerAddin(AddinManager.java:550)
at oracle.ide.AddinManager.initAddins(AddinManager.java:715)
at oracle.ide.AddinManager.initAddins(AddinManager.java:694)
at oracle.ide.AddinManager.initProductAndUserAddins(AddinManager.java:287)
at oracle.ide.Ide.initProductAndUserAddins(Ide.java:1147)
at oracle.ide.Ide.startupImpl(Ide.java:1839)
at oracle.ide.Ide.startup(Ide.java:1544)
at oracle.ideimpl.IdeMain.main(IdeMain.java:33)
The situation becomes even more irritating when I realise that almost all actions that I try to perform (like when I try to add a new Project) are not executed (while I keep on getting the SAME error in my console as above with only the number of the final line that indicates where the first call occured changed).
Does anybody have any idea of what kind of dependency I may have forgotten and where ? The error seems to be related with some kind of xml (parser maybe ?) incompatibility ... Any clues ?
To further assist you, I have a list of extra information that might prove to be helpful on my attempt to shed more light onto this very problem:
My Java Version is:
java -version:
java version "1.3.1_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_04-b02)
Java HotSpot(TM) Client VM (build 1.3.1_04-b02, mixed mode)
and any possible environment variable related stuff (all links have been double checked and are valid):
SDK_HOME=/usr/lib/java
J2EE_HOME=/opt/development/programming/java/sun/j2ee
J2EE_BIN_HOME=/opt/development/programming/java/sun/j2ee/bin
FORTE_JDK_HOME=/opt/development/programming/java/sun/forte/forte/j2sdk1.4.0
CLASSPATH=/usr/lib/jre/lib/rt.jar:/opt/development/programming/java/apache/jakarta/tomcat/common/lib/servlet.jar:/opt/development/programming/java/sun/j2ee/lib/j2ee.jar:/usr/lib/java/lib/jsse.jar:/opt/Servers/JBoss/JBoss/client:.:/opt/development/programming/java/apache/jakarta/ant/lib:.
JAVA_BINDIR=/usr/lib/java/bin
ANT_HOME=/opt/development/programming/java/apache/jakarta/ant
ANT_LIB_HOME=/opt/development/programming/java/apache/jakarta/ant/lib
JSEE_HOME=/usr/lib/java
JAVA_BIN_HOME=/usr/lib/java/bin
TOMCAT_HOME=/opt/development/programming/java/apache/jakarta/tomcat
JAVA_HOME=/usr/lib/java
JAVA_PATH=/usr/lib/java:/opt/development/programming/java/sun/j2ee
JDK_HOME=/opt/development/programming/java/sun/forte/forte/j2sdk1.4.0
PATH=/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/kde2/bin:/usr/openwin/bin:/usr/lib/java/bin:/opt/gnome/bin:/usr/lib/java/bin:/opt/development/programming/java/sun/j2ee/bin:.:/opt/development/programming/java/apache/ant/bin:.:/opt/projects/cvs/tk_cvs/installation/bin:.:/usr/lib/java/bin:/opt/development/programming/java/sun/j2ee/bin:.:/opt/development/programming/java/apache/jakarta/ant/bin:.:/opt/projects/cvs/tk_cvs/installation/bin:.
ANT_BIN_HOME=/opt/development/programming/java/apache/jakarta/ant/bin
I would really like to thank you in advance for your concern,
Best regards,
Nassos KoyrendasJDeveloper is only supported with JDK 1.3.1_02 as we are aware of some issues with 1.3.1_04. Can you try with JDK 1.3.1_02 and see whether the problem still reproduces.
Thanks,
Lisa
JDev QA Dear Lisa,
As I have stated within my previous reply to your immediate answer/response, today I reverted my production PC at work to operate with a single processor Linux kernel (2.4.18-4GB) and also installed JDK 1.3.1_02 but still get the same irritating error that apparently does not allow me perform almost any action at all:
ava.lang.NoSuchMethodError
at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
at oracle.ide.model.DataNode.open(DataNode.java:75)
at oracle.jdeveloper.model.JProject.open(JProject.java:177)
at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
at oracle.bm.commonIde.ModelersServices.initialize(ModelersServices.java:423)
at oracle.ide.AddinManager._registerAddin(AddinManager.java:550)
at oracle.ide.AddinManager.initAddins(AddinManager.java:715)
at oracle.ide.AddinManager.initAddins(AddinManager.java:694)
at oracle.ide.AddinManager.initProductAndUserAddins(AddinManager.java:287)
at oracle.ide.Ide.initProductAndUserAddins(Ide.java:1147)
at oracle.ide.Ide.startupImpl(Ide.java:1839)
at oracle.ide.Ide.startup(Ide.java:1544)
at oracle.ideimpl.IdeMain.main(IdeMain.java:33)
java.lang.NoSuchMethodError
at oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)
at oracle.ide.marshal.xml.Object2Dom.applyTransforms(Object2Dom.java:1177)
at oracle.ide.marshal.xml.Object2Dom.open(Object2Dom.java:635)
at oracle.ide.model.DataNode.open(DataNode.java:75)
at oracle.jdeveloper.model.JProject.open(JProject.java:177)
at oracle.jdeveloper.model.JProject.ensureOpen(JProject.java:1116)
at oracle.jdeveloper.model.JProject.getProjectSettings(JProject.java:339)
at oracle.jdeveloper.model.JProject.getActiveConfiguration(JProject.java:925)
at oracle.jdeveloper.model.JProject.getEncoding(JProject.java:750)
at oracle.ide.Ide.getDefaultEncoding(Ide.java:1036)
at oracle.ide.model.TextNode.loadURLContentIntoBuffer(TextNode.java:423)
at oracle.ide.model.TextNode.reopen(TextNode.java:205)
at oracle.ide.model.TextNode.open(TextNode.java:143)
at oracle.ide.model.TextNode.acquireTextBuffer(TextNode.java:343)
at oracle.ide.model.TextNode.getInputStream(TextNode.java:316)
at oracle.jdevimpl.webapp.html.HtmlEditorConnection.getInputStream(HtmlEditorConnection.java:65)
at ice.pilots.html4.DOMBuilder.loadData(Unknown Source)
at ice.pilots.html4.DOMBuilder.linkStyleSheet(Unknown Source)
at ice.pilots.html4.DOMBuilder.startElement(Unknown Source)
at ice.pilots.html4.Lex2.doElementCallback(Unknown Source)
at ice.pilots.html4.Lex2.parseElement(Unknown Source)
at ice.pilots.html4.Lex2.parseMarkup(Unknown Source)
at ice.pilots.html4.Lex2.do_parse(Unknown Source)
at ice.pilots.html4.Lex2.parse(Unknown Source)
at ice.pilots.html4.Lex2.parse(Unknown Source)
at ice.pilots.html4.ThePilot.parse(Unknown Source)
at ice.storm.StormBase.do_render_content(Unknown Source)
at ice.storm.DefaultPilotContext.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)
No matter what the action that is to be performed is, the JDeveloper application insists on reporting the above mentioned problem and almost always refuses to perform the desired activity!
Based on your more advanced knowledge of the underlying architecture of JDeveloper, do you happen to have a more clear idea about it and especially the "oracle.ide.marshal.xml.Object2Dom.getNamespaceURI(Object2Dom.java:1158)" case ?
Is there anything that I have forgotten to properly configure during the installation of jdeveloper ?
Any other clues that could further assist me ? I am afraid I am still desperate for any king of useful derictives ?
I would once again like to thank you for your concern,
Best regards,
Nassos Koyrendas -
Error when trying to run program
I am trying to run a simple cdma transfer and the error I keep getting is this:
Unexpected error while launching program: Error in Resetting Target
Could not stop the processor after reset
Error in Resetting Target
Could not stop the processor after reset
Anyone know how to fix this?Got the same thing with 2015.1
It's nothing but creating a helloworld app.
20:14:14 ERROR : Unexpected error while launching program.
com.xilinx.sdk.targetmanager.TMException: Error downloading program to target:
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.loadProgram(XilinxAppLaunchConfigurationDelegate.java:834)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.debugApplication(XilinxAppLaunchConfigurationDelegate.java:715)
at com.xilinx.sdk.debug.core.XilinxAppLaunchConfigurationDelegate.launch(XilinxAppLaunchConfigurationDelegate.java:296)
at com.xilinx.sdk.debug.ui.XilinxAppLaunchDelegateWrapper.launch(XilinxAppLaunchDelegateWrapper.java:31)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:858)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:707)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1018)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1222)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) -
Problem with permissions, running programs and installing programs.
I've been having trouble installing and running programs. Whenever I try to install a new program I have to make sure to right-click and select "Run as Administrator", which is something that didn't happen before. And while running programs, sometimes
they don't work well (i.e. dropbox alerts me that it cannot run because of permission issues; calibre needs to run with Administrator level, otherwise it won't open my ebooks; the list goes on).
I tried using the elevated command prompt and typin secedit
/configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose to reset the permission settings, and it does not work (it tells me that some ignorable warnings occured).
There's only one account in this machine and it has administrator level.
Any thoughts?1. First of all, it is a bad habit to work with administrator account only. Use standard user account where programs allows for it.
2. For third party programs contact respective support/forums. Some programs are not written in right way and may need admin account. I would avoid such programs.
3. Elevated rights (Run as Administrator) is natural enhancement that comes with Windows version 6.x
4. If you want to play risky role, disable UAC (not recommended). Step-by-step is here:
http://www.petri.com/disable-uac-in-windows-7.htm#
Regards
Milos -
Problem trying to run sql loader
hi ,
i'm trying to run sql loader but i'm getting an error message. it was working a few days ago but not now. i am on oracle version 8.0.6.2.0
from a unix prompt line i type....
sqlldr system/manager id3com.ctl
the error message i get is......
ORA-01017: invalid username/password; logon denied
SQL*Loader-704: internal error: ulconnect: OCISessionBegin [-1]
does anyone know what this is for? i've always used system/manager in the past but just recently i've been getting error messages.I'd say someone changed the password. Try running sql*plus as system.
-
Problem trying to run photoshop roundtrip with aperture/automator
i have been trying to install photoshop round-trip to use with aperture but it is not working.
first, i created a folder called automator in the main library and drag the "start photoshop roundtrip.action" file.
second, i copied the photoshop action pack to my photoshop cs2, inside my application folder
third, i restarted the computer (aperture loves quit and restart).
now, i am trying to run photoshop round-trip from my aperture menu from automator, but i dont see the option for photoshop round-trip.
what i am doing wrong?
thanks for your help.
ericCan you please provide the code for a sample procedure and the string you are passing it for me to try out?
-
JAXB, problems trying to run a program
Hi!
I made a program similar to the create marshal example from the Java Web Services Tutorial. It compiled ok, but when I try:
java Main
I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Do you know what might be causing this problem?
Thanks!I've got this problem before,
as time limited,
I simply extract and copy the <jwsdp_home>\jaxb\lib\jaxb_api.jar to the folder containing the Main.java. -
Problem trying to run 32 bit VBA program on a 64 bit machine
I am a new programmer using VBA in Excel. I have used code that refers to a kernel32 in the VBA code. This code fails on a 64 bit machine. Runs perfectly fine on 32 bit machine. Is there code I can add that will allow the program to run on both systems?
The code is being used to determine the UTC time of a cell from a report.
Thank you in advance. Code below:
Option Explicit
Public Declare Function SystemTimeToFileTime Lib _
"kernel32" (lpSystemTime As SYSTEMTIME, _
lpFileTime As FILETIME) As Long
Public Declare Function LocalFileTimeToFileTime Lib _
"kernel32" (lpLocalFileTime As FILETIME, _
lpFileTime As FILETIME) As Long
Public Declare Function FileTimeToSystemTime Lib _
"kernel32" (lpFileTime As FILETIME, lpSystemTime _
As SYSTEMTIME) As Long
Public Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Public Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End TypeI don't have Office-64 to test but try this
#If VBA7 Then
Declare PtrSafe Function SystemTimeToFileTime Lib "kernel32" Alias "SystemTimeToFileTime" (lpSystemTime As SYSTEMTIME, lpFileTime As FILETIME) As Long
Declare PtrSafe Function LocalFileTimeToFileTime Lib "kernel32" Alias "LocalFileTimeToFileTime" (lpLocalFileTime As FILETIME, lpFileTime As FILETIME) As Long
Declare PtrSafe Function FileTimeToSystemTime Lib "kernel32" Alias "FileTimeToSystemTime" (lpFileTime As FILETIME, lpSystemTime As SYSTEMTIME) As Long
#Else
Public Declare Function SystemTimeToFileTime Lib _
"kernel32" (lpSystemTime As SYSTEMTIME, _
lpFileTime As FILETIME) As Long
Public Declare Function LocalFileTimeToFileTime Lib _
"kernel32" (lpLocalFileTime As FILETIME, _
lpFileTime As FILETIME) As Long
Public Declare Function FileTimeToSystemTime Lib _
"kernel32" (lpFileTime As FILETIME, lpSystemTime _
As SYSTEMTIME) As Long
#End If
For a good intro
Declaring API Functions In 64 Bit Office -
Trying to run programs with java 1.4.2_07 after upgrading Eclipse
Hi All,
I'm using Eclipse version 3.1.0 and java 5.0 (1.5.0_03). I changed the JRE of a program back to 1.4.2_07, but when i try to run it i get this:
Exception in thread "main" java.lang.UnsupportedClassVersionError: controller/Controller (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)What the %^#@ ? Will appreciate any help.
Regards,
snayitAlso, another thing people may want to try. A coworker was having a problem where she kept getting the unsupported major minor version error from eclipse after upgrading to the latest version of java.
All the configuration settings were correct, pointing to the latest vm. I tried starting eclipse with the parameter
-vm "C:\Program Files\Java\jdk1.5.0_04\jre\bin\javaw.exe"
and it worked just fine. Without this, it was apparently finding some conflict between jdk1.5 and the older jdk1.4.
IDE's are nice, but I find configuring them after an upgrade to be exremely painful. -
Trying to run program off network location using GPO with Power shell script.
Hello All,
Not much of a script writer. I am giving it a shot. My issue is that I need to run a application update across our network and I am trying to do it with as little hands on as possible. So I was planning to push a GPO with a power shell script in it
to run the program with elevated privileges.
Little background:
We are running on a domain and end users do not have admin rights.
The application is stored on a share on our network that is open to all domain users.
The installer user name and password is a temp one and will only be valid for the 30 min window when everyone logs in at the beginning of the day.
So this is what I have so far.
$username = "USER"
$password = "PASSWORD"
$credentials = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,(ConvertTo-SecureString -String $password -AsPlainText -Force))
Start-Process PSQLv11Patch_Client_x86.msp -Credential ($credentials) -WorkingDirectory \\Server\Folder\Folder1\Folder2\filder3\PSQLv11sp3_x32\
But for some reason I keep getting :
Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At line:10 char:1
+ Start-Process PSQLv11Patch_Client_x86.msp -Credential ($credentials) -WorkingDir ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
Any help you could give would be great.
Thanks,
jdfmonkeyHi jdfmonkey,
Has anyone provided an answer to your original question? I am trying to use Start-Process to launch a process using another logged in user's credentials, and am not able to get it working:
$cred=Get-Credential
start-process Process.exe-WorkingDirectoryC:\Scripts-Credential$cred
I get the same error that you mentioned:
start-process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Scripts\Process.ps1:2 char:1
+ start-process Process.exe -WorkingDirectory C:\Scripts -Credential ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
When I leave off the credentials:
start-processProcess.exe-WorkingDirectoryC:\Scripts
It works correctly. Does anyone have a solution to make this work correctly?
Please ask your own question. You issue is nothing like the current thread. You clearly are using a user account that has no access to the folder. It is a permissions issue. It is not a scripting issue.
If you need further help please start your own question.
¯\_(ツ)_/¯ -
Major problems trying to run computer
I am having a huge problem right now. When I try to boot my Mac the screen is a fuzzy mess and will just freeze up after a few seconds. If I try to reboot a few times, eventually the computer clears itself up and looks like it is booting normally, but when the desktop should show up, it does not, or does for a second and freezes up. I cannot get into any files to save anything. I tried booting to the install disk and running disk first aid. That worked fine, but the computer still will not load without becoming a snowy/fuzsy mess and locking up. Any ideas?
Are you able to run the Apple Hardware Test from the CD or DVD? I had the same problem, was not able to run Apple Hardware Test, and AppleCare even took me through OpenFirmware, but with no luck. It ended up being a bad logic board, which luckily for me, was covered under warranty. Hopefully yours is something simple (cheap), or even better, I hope you're still under warranty.
-
Problem trying to run java embedded in Xscale -PXA270
Hi all,
I have a Arcom Zeus (Xscale -PXA270, ARMv5, 5TE), and I'm trying to install java embedded for armv5 (headless). My system is debian/linux, gcc (), kernel 2.6.16-28 (cannot upgrade) and glibc (). My /proc/cpuinfo is:
Processor : XScale-PXA270 rev 7 (v5l)
BogoMIPS : 517.73
Features : swp half thumb fastmult edsp
CPU implementer : 0x69
CPU architecture: 5TE
CPU variant : 0x0
CPU part : 0x411
CPU revision : 7
Cache type : undefined 5
Cache clean : undefined 5
Cache lockdown : undefined 5
Cache format : Harvard
I size : 32768
I assoc : 32
I line length : 32
I sets : 32
D size : 32768
D assoc : 32
D line length : 32
D sets : 32
Hardware : Arcom ZEUS
Revision : 0000
Serial : 0000000000000000
My /proc/meminfo is:
MemTotal: 127684 kB
MemFree: 13532 kB
Buffers: 4688 kB
Cached: 70400 kB
SwapCached: 0 kB
Active: 71760 kB
Inactive: 32680 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 127684 kB
LowFree: 13532 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 39200 kB
Slab: 7036 kB
CommitLimit: 63840 kB
Committed_AS: 161180 kB
PageTables: 848 kB
VmallocTotal: 319488 kB
VmallocUsed: 66072 kB
VmallocChunk: 253116 kB
I think all system requirements are respected!
I have installed the package but when I try to execute "java", using "./java", it state that the file is not found, which typically means (when the file exists :D), that it is not compiled for the system in question. So, I have compiled a simple helloworld in C and compile it, to compare the output of the file command, between my program and the "java" executable:
* a.out: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.6.12, dynamically linked (uses shared libs), for GNU/Linux 2.6.12, not stripped
* java: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
The only two differences are "version 1 (ARM)" or "version 1 (SYSV) - can it be the EABI? - and Kernel version 2.6.12 to 2.6.14.
Can someone help me understand what is the problem and if it can be solved by modifying my system (but not the kernel version)?.
Thanks in advance!Hi,
forgot to state libc6 version = 2.7-18;
and gcc version = 4.4.3
thanks! -
Having problems trying to run a sql script using the command prompt.
I place my script at the root c:
open run SQL Command Line.
I connected to the database using connet userid/password
Then I tried to execute the script by doing
@test_add_comments
I am getting the error message.
SQL> @test_add_comments
SP2-0310: unable to open file "test_add_comments.sql"
Am I suppose to place this sql somewhere else?
test_add_comments.sql is
COMMENT ON COLUMN myTable.ID IS 'Primary Key' ;
COMMENT ON COLUMN myTable.REVIEWLOG_ID IS 'REFERENCE TO SAFE REVIEW LOG TABLE' ;
COMMENT ON COLUMN myTable.FAC_ID IS 'REFERENCE TO ALL FACILITIES' ;
COMMENT ON COLUMN myTable.HALLBUILD_ID IS 'REFERENCE TO HALL BUILDING' ;I figure it out.
open a sql worksheet and enter the falling commands in the run script.
@c:\your_script.sql
Execute it by clicking run script.
Maybe you are looking for
-
|Pages 5| Keep Comments Displayed in Margins?
When I write comments on a document they are now only shown when I mouse-over them. I would like them to constantly be displayed in the margins. Is there still a way to do this? -Neil
-
Hi All, We're trying to install OAS SSO Plugin in a IIS Server, we have made every step as described in Appendix B (Using Oracle Application Server SSO Plug In) but we haven't been able to load ISAPI Filter and get green in our IIS Console. Could any
-
1) I can't drag songs onto my phone 4 - I keep getting a red circle icon with a line going through. It won't let me add songs. What's this about? 2) It won't let me transfer purchases from my phone to itunes - It tries and after awhile it says there'
-
I can't texted people on iMessage that are not registered with iMessage
hello, I have my iphone, ipad and mac book pro all link together with imessage my phone works fine but if i want to text a person from my mac book or my ipad that are not using an apple product it says the number is not registered with imessage how c
-
Handling legacy PDF-format folios in Kindle viewer
I'm working with a client to publish a magazine on the Kindle Fire. The magazine, a bimonthly, has been available on the iPad for more than a year now. All of the folios that we have produced for the iPad are PDF format. (Which turned out to be a goo