Running program at start up
Does anyone know how to have a java program run automatically when the computer is started?
Thanks
This is OS depended, thus can not be done in 100% pure Java.
You can do it for some OSes for example
In Win9X, add it to your Startup folder in your Start Menu.
In WinNT, make it a WinNT Service. (search forums for more info).
Similar Messages
-
Removing auto run programs from start up, removing auto run programs from start up
I downloaded a great ear trainer for musicians, called Dolce Ear Training but the silly *** thing automatically intrusives itself on start up, any ideas how to stop that??? Also I when I bought my latest Western Digital TB drive it seemed to install something by itself on my TOP menu bar next to tthe ime machine icon. Any ideas how to remove that?
THanks guysGo into your System Preferences and click your accounts, then click on your name then click on Login Items, select the item then click the minus sign on the bottom. I am not clear on the other problem.
-
How do i stop programs from automatically running when i start up my macbook?
how do i stop programs from automatically running when i start up my macbook?
programs such as.. email and Skype.
When i go to system preferences, then users & groups, then to my name, log in items ....this box is clear, i have unchecked everything, yet things still start up......sometimes these applications will have a setting in the preferences to not open on login of computer. If you see none of that, you can go into:
system preferences> Users & Groups > Select your user>Login Items.
unlock the settings by hitting the lock icon on the bottom left of the window then youll be able to uncheck these things from opening when you log in.
Hope this is helpful or answers the question. -
Can't Run program in Debug Mode
To: [email protected]
cc:
Subject: Can't Run program in Debug Mode
Has anyone else experienced this problem? We have written a non-express
program that uses the Express generated services project as a supplier
plan. However, when we try running this program in debug mode about 50%
(or more) of the time we abend while Forte is trying to partition the
application. Since we have many database classes in our Business Model we
are wondering if Forte is timing out during the partition phase or if the
server partition is running out of memory . The following error messages
are produced by Forte. Any suggestions???
=======================
Error messages on client:
=======================
SYSTEM ERROR: Unable to start the partition testacadprogoffer_CL0_Part1 on
any
of the nodes to which it has been assigned. See the remainder of the
error
stack for more information.
Class: qqsp_ResourceException
Error #: [1602, 593]
Detected at: qqcf_StandardConfig::LoadRemotePartition at 5
Last TOOL statement: method overview.StartApplication
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
SYSTEM ERROR: Unable to start partition testacadprogoffer_CL0_Part1 on node
admin2.
Class: qqsp_ErrorDescriptor
Error #: [1602, 592]
Detected at: qqcf_StandardConfig::LoadRemotePartition at 3
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
SYSTEM ERROR: Lost contact with remote server while trying to load
partition
testacadprogoffer_CL0_Part1. Check server log file for more information
about
the specific problem.
Class: qqsp_ResourceException
Error #: [1301, 102]
Detected at: qqem_IPartitionAgent::Startup at 5
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: The connection to the partner was terminated by the
Communication
Manager for the reasons below.
Class: qqsp_DistAccessException
Detected at: qqdo_PartitionMgr::StopLocation at 1
Error Time: Tue Dec 02 12:56:00
Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!6
(object name Unnamed) from partition "Forte_Executor", (partitionId =
F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9, taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9.229]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment CentralEnv
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: Network partner closed connection. This usually means the
process at the other end of the wire failed. Please go look there and
find
out why.
Class: qqsp_DistAccessException
Detected at: qqcm_HoseFSM::ReceivedClose at 2
Error Time: Tue Dec 02 12:56:00
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: Received close: Connection aborted (10053).
Class: qqsp_DistAccessException
Detected at: qqcm_HoseFSM::ReceivedClose at 1
Error Time: Tue Dec 02 12:56:00
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
=======================
Log messages on server:
=======================
Attached to manager for node admin2.
aud Tue Dec 2 09:34:36 : Loading partition testacadprogoffer_cl0_Part2
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 09:41:58 : Shutting down partition as requested.
aud Tue Dec 2 09:41:59 : Unloaded partition testacadprogoffer_cl0_Part2.
aud Tue Dec 2 09:49:44 : Loading partition testacadprogoffer_cl0_Part2
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 10:00:11 : Shutting down partition as requested.
aud Tue Dec 2 10:00:12 : Unloaded partition testacadprogoffer_cl0_Part2.
aud Tue Dec 2 10:18:34 : Loading partition testacadprogoffer_cl0_Part3
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 10:27:00 : Shutting down partition as requested.
aud Tue Dec 2 10:27:00 : Unloaded partition testacadprogoffer_cl0_Part3.
aud Tue Dec 2 10:47:03 : Loading partition
EvaluateApplRequirementsBO_CL0_Part1 built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 11:09:26 : Shutting down partition due to failure of agent
owner's partition.
aud Tue Dec 2 11:09:26 : Shutting down partition as requested.
aud Tue Dec 2 11:09:26 : Unloaded partition
EvaluateApplRequirementsBO_CL0_Part1.
aud Tue Dec 2 12:36:14 : Loading partition testacadprogoffer_CL0_Part1
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 12:45:17 : Shutting down partition as requested.
aud Tue Dec 2 12:45:17 : Unloaded partition testacadprogoffer_CL0_Part1.
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
Task 11: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
FATAL ERROR: ************* Out of Memory, requested (1K) available (0K)
Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
Detected at: qqos_MemoryManager
Error Time: Tue Dec 2 12:49:01
Exception occurred (locally) on partition "Forte_Executor",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3, t
askId = [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3.11]) in application
"Forte Runtime", pid 14020 on node admin2 in environ
ment CentralEnv.
FATAL ERROR: ************* Out of Memory, requested (1K) available (0K)
Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
Detected at: qqos_MemoryManager
Error Time: Tue Dec 2 12:48:57
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
ERROR: TMgr.RunThread: task cm.Recv failed terminating.
Probably caused by a FATAL exception.
David Wilbur email: [email protected]
University of Windsor phone: 519-253-3000 ext. 2779
Windsor, Ontario Canada
-----------------------------------------------Hi,
We have had the same problem in a non-express application
with a heavy server partition. In our case, the error was not
systematic, depending on the server workload at the time we
tried to partition and run.
The work-around we're using is to put the -fm flags (increasing the x
parameter to say 30000) in the 'server arguments' of your server
partition
properties in the partition workshop. Note that if your server is a Unix
platform,
you need to put double-quotes before and after the parenthesis in the -fm
syntax.
Hope this helps,
Vincent Figari
BTW, what Forte version are you using ?
On Tue, 2 Dec 1997 13:44:24 -0500 "David Wilbur"<[email protected]>
writes:
>
>
>
>
>
To: [email protected]
cc:
Subject: Can't Run program in Debug Mode
Has anyone else experienced this problem? We have written a
non-express
program that uses the Express generated services project as a supplier
plan. However, when we try running this program in debug mode about
50%
(or more) of the time we abend while Forte is trying to partition the
application. Since we have many database classes in our Business
Model we
are wondering if Forte is timing out during the partition phase or if
the
server partition is running out of memory . The following error
messages
are produced by Forte. Any suggestions???
=======================
Error messages on client:
=======================
SYSTEM ERROR: Unable to start the partition
testacadprogoffer_CL0_Part1 on
any
of the nodes to which it has been assigned. See the remainder of
the
error
stack for more information.
Class: qqsp_ResourceException
Error #: [1602, 593]
Detected at: qqcf_StandardConfig::LoadRemotePartition at 5
Last TOOL statement: method overview.StartApplication
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
SYSTEM ERROR: Unable to start partition testacadprogoffer_CL0_Part1 on
node
admin2.
Class: qqsp_ErrorDescriptor
Error #: [1602, 592]
Detected at: qqcf_StandardConfig::LoadRemotePartition at 3
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
SYSTEM ERROR: Lost contact with remote server while trying to load
partition
testacadprogoffer_CL0_Part1. Check server log file for more
information
about
the specific problem.
Class: qqsp_ResourceException
Error #: [1301, 102]
Detected at: qqem_IPartitionAgent::Startup at 5
Error Time: Tue Dec 02 12:56:01
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: The connection to the partner was terminated by the
Communication
Manager for the reasons below.
Class: qqsp_DistAccessException
Detected at: qqdo_PartitionMgr::StopLocation at 1
Error Time: Tue Dec 02 12:56:00
Distributed method called:
qqrt_ForteExecAgentProxy.LoadPartition!6
(object name Unnamed) from partition "Forte_Executor",
(partitionId =
F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9, taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9.229]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: Network partner closed connection. This usually means
the
process at the other end of the wire failed. Please go look there
and
find
out why.
Class: qqsp_DistAccessException
Detected at: qqcm_HoseFSM::ReceivedClose at 2
Error Time: Tue Dec 02 12:56:00
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
INFORMATION: Received close: Connection aborted (10053).
Class: qqsp_DistAccessException
Detected at: qqcm_HoseFSM::ReceivedClose at 1
Error Time: Tue Dec 02 12:56:00
Exception occurred (locally) on partition "Express_cl7_Client",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3,
taskId =
[F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10e9:0x3.226]) in
application
"FTLaunch_cl0", pid 65 on node DWILBUR_NTWS in environment
CentralEnv.
=======================
Log messages on server:
=======================
Attached to manager for node admin2.
aud Tue Dec 2 09:34:36 : Loading partition
testacadprogoffer_cl0_Part2
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 09:41:58 : Shutting down partition as requested.
aud Tue Dec 2 09:41:59 : Unloaded partition
testacadprogoffer_cl0_Part2.
aud Tue Dec 2 09:49:44 : Loading partition
testacadprogoffer_cl0_Part2
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 10:00:11 : Shutting down partition as requested.
aud Tue Dec 2 10:00:12 : Unloaded partition
testacadprogoffer_cl0_Part2.
aud Tue Dec 2 10:18:34 : Loading partition
testacadprogoffer_cl0_Part3
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 10:27:00 : Shutting down partition as requested.
aud Tue Dec 2 10:27:00 : Unloaded partition
testacadprogoffer_cl0_Part3.
aud Tue Dec 2 10:47:03 : Loading partition
EvaluateApplRequirementsBO_CL0_Part1 built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 11:09:26 : Shutting down partition due to failure of
agent
owner's partition.
aud Tue Dec 2 11:09:26 : Shutting down partition as requested.
aud Tue Dec 2 11:09:26 : Unloaded partition
EvaluateApplRequirementsBO_CL0_Part1.
aud Tue Dec 2 12:36:14 : Loading partition
testacadprogoffer_CL0_Part1
built on <unknown>.
Attached to manager for node admin2.
aud Tue Dec 2 12:45:17 : Shutting down partition as requested.
aud Tue Dec 2 12:45:17 : Unloaded partition
testacadprogoffer_CL0_Part1.
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
Task 11: qqcm_HoseRecvServiceTask::Run: Caught unexpected exception
FATAL ERROR: ************* Out of Memory, requested (1K) available
(0K)
Class: qqsp_ResourceException with ReasonCode: SP_ER_OUTOFMEMORY
Detected at: qqos_MemoryManager
Error Time: Tue Dec 2 12:49:01
Exception occurred (locally) on partition "Forte_Executor",
(partitionId = F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3, t
askId = [F88CCF80-FA5D-11D0-A2F1-DA164885AA77:0x10f3.11]) in
application
"Forte Runtime", pid 14020 on node admin2 in environ
ment CentralEnv.
FATAL ERROR: ************* Out of Memory, requested (1K) available
(0K)
Class: qqsp_ResourceException with ReasonCode:
SP_ER_OUTOFMEMORY
Detected at: qqos_MemoryManager
Error Time: Tue Dec 2 12:48:57
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
FATAL ERROR: Out of Memory (reason = qqOS_MM_EX_OUT_OF_MEMORY)
ERROR: TMgr.RunThread: task cm.Recv failed terminating.
Probably caused by a FATAL exception.
David Wilbur email: [email protected]
University of Windsor phone: 519-253-3000 ext. 2779
Windsor, Ontario Canada -
Access to a FG from another running program
Group, Is there any way to "get a hold of" a reference of a functional global running inside another vi? I have a program that uses a functional global to pass data between vi's of a program. I have this program starting up as a service when I start the computer so I don't really have access to its front panel. Part of the data that the FG holds is a STOP flag and will shut down mulitple parts of this program. I would like to build another program that I can start and run at will that will set the STOP flag in the "hidden" running program. I am not sure quite how to do this.
Thanks
ToddWhat you are essentially asking to do is to access an internal resouce of another program. Doesn't really matter if it's a LabVIEW program. In your case you could enable the ActiveX server for the other program so you can access the VI that way. The LabVIEW Help contains information on how to enable the ActiveX server for an app and how to use it from another application. You could also use shared variables. You can take a look at this overview for more ideas:
Community: Inter-Application Communication -
Checking for running programs using a abap program
Is there a way in ABAP to detect from within a program that another process is running the same program? Meaning if PROG1 is running, could PROG1 check to see if another process is running program PROG1?
Use the locking concept. You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0.
The logic is:
Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
If lock got -> run program
If lock not got -> quit.
You have to put this logic at the start of your program.
matt -
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 -
trying to install the newest version of itunes on my pc and am getting "program cant start because msvcr80.dll is missing from your computer" reinstalling doesnt work. and then it says error 7 (windows error 126). Any help would be appreciated. Using Windows 7 enterprise on an hp Z600
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (if this won't uninstall move on to the next item)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
Please note:
Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
tt2 -
Cannot write the suitable source codes for running program
I want to write a program that help student to compile program and run program by using some test cases. For the compiled part, i have been wrote it successfully, but for the run part, i cannot pass the test cases to the program for running. Could any ppl help me to find the problem on the followng codes, why the error will on there? how do i change it? Thanks!
//<!--start get Program Test Case File-->
java.io.BufferedReader TestCaseBuf = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:compas", "sa", "password");
stmt = con.createStatement();
String strSQL = "SELECT testValue FROM TEST_CASE WHERE progID='"+progID+"'";
stmt = con.createStatement();
rs = stmt.executeQuery(strSQL);
try
while (rs.next())
TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));
finally
if (rs != null)
rs.close();
if (stmt != null)
stmt.close();
//<!--end get Program Test Case File-->
//<!--start run program -->
String[ ] args2 = new String[ ]
"java", "-cp", System.getProperty("user.dir"), FileName
try
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(args2);
java.io.BufferedReader ireader = new java.io.BufferedReader(new java.io.InputStreamReader(proc.getInputStream()));
java.io.PrintWriter pwriter = new java.io.PrintWriter(proc.getOutputStream());
String atestcase = null;
String line= null;
try
while ((atestcase = TestCaseBuf.readLine()) != null) <------------I found that error seems on here!!!!
pwriter.write(atestcase+"\r");
pwriter.flush();
if (atestcase != null)
if ((line = ireader.readLine()) != null)
FileOutput = FileOutput + line +"\r\n";
else {break; }
} //while
catch (java.io.IOException e)
out.println("[IOException]. Printing Stack Trace");
e.printStackTrace();
pwriter.close();
ireader.close();
catch (java.io.IOException e)
out.println("[IOException]. Printing Stack Trace");
e.printStackTrace();
//<!--end run program -->Whats the error message??
Just a guess, but could be (without seeing the error) that you've already closed the TestCaseBuf reader by closing the result set, hence when you go to read it, you're reading on closed reader.
Give this a go...Put the //<!--run program --> code into the result set while loop
while (rs.next())
TestCaseBuf = new java.io.BufferedReader(new java.io.InputStreamReader(rs.getBinaryStream("testValue")));
//<!--start run program -->
...some code
//<!--end run program -->
} Hard to tell without the error message -
Adobe Audition 3.0 - first time run - program shutdown
i downloaded the AA3 trial version
it installed on my computer with no problem.
when i first run the program it gives me the trial version window, saying i have 30 days to use trail version program etc.
so far so good
i click on try, to try the program
i starts the program, giving the "green" splash screen. than it prompts me to select my biggest hard drive for my temp folder- i choose yes, and my next laargest drive for secondry temp- i choose yes also.
than it opens a little window thats saying
title: "Shutting Down"
text : "to continue working where you left off, please resatrt audition"
then the window closes.
when i rstart the program, the problem continues.
i tried uninstalling, and reinstalling. no good
i tried safe mode- no good
i tried to install on another windows user - no good.
also i tried selecting no on the temp folder questions, just to try it, nothing happends- same problem.
what can i do? im kinda desperate for this program before i buy it, so can anyone has any idea?
system info:
winxp pro SP3, english version.
im computer administrator.have lots of free space, on my temp folder drivers, and on te windows drive, and the installed AA drive. surely more than the program should require to work OK.
thanks in advnace for the help. sorry for the scroll..... :)
Maor B.Unfortunately once uninstalled you cannot reinstall the trial version. It only works once, I'm afraid.
-
Exception "Cannot run program" while using ProcessBuilder class
Hi Java-Folks,
I try to start a program within a Java application using the ProcessBuilder class. This is the first time I use ProcessBuilder so I do not have any deep knowledge of it. Here is a snippet of my code:
static void connectToHost(String Host) {
ProcessBuilder pb = new ProcessBuilder("connect.exe"), Host);
Map<String, String> env = pb.environment();
env.put("SHELLWIDTH", "64");
pb.directory(new File("C:\\MyProgram\\ExApp\\shell"));
try (
Process p = pb.start();
} catch (IOException ex) {
Logger.getLogger(ShellUtil.class.getName()).log(Level.SEVERE, null, ex);
}Using this method I get an IOException which says *"Cannot run program "connect.exe" (in directory "C:\MyProgram\ExApp\shell"): CreateProcess error=2, The system couldn't find the specified file"*
Does anybody have an idea why this is not working? I tried to start another application like "notepad.exe" and that works fine. So it seems related to the fact
that the program I want to start is only available in a certain directory and not via the PATH env-variable.
I would appreciate any help or hint :-)
Regards,
LemmyOkay I guess I misinterpreted the JavaDocs regarding the directory method. The exception message is a little bit confusing too, because it seems like Java tries to find the Application within the specified
working directory.
I tried to use the full path with the ProcessBuilder constructor and it looks like this variant is working. I still have some trouble with the application itself but I was able to start another program which is
not in the PATH var, using the full path to the executable.
Thanks for the help so far.
Bye
Lemmy -
Error running program AI_CRM_CPY_PROCTYPE in SOLMAN 7.1
Hi Gurus.
I'm trying to run program AI_CRM_CPY_PROCTYPE to copy transaction type SMIN to ZMIN in SOLMAN 7.1 SP3.
When I choose button "start copy process", the program terminates with error "ASSIGN_BASE_TOO_SHORT".
Do I need to change something in the screen before I choose the "start copy process"? Can you please help me how to correctly run this report to copy transaction type.
The Central Correction Note for was already applied in our SOLMAN system.
Thanks,
TessHi,
In SOLMAN 7.1, Use SOLMAN_SETUP, and go to IT Service Management-> Change Request Management.
Apply the master note for Charm in step and in Step 3, Copy Transaction Type via Report.
Please use the above method, it should work.
Regards,
Sunny -
Checking for a running program?
I have a program I'm working on that will have background threads, and instead of starting up a new instance when the main method is invoked, I'd like to bring the GUI up (just gui.show();) if the background threads arent running.
How do I go about checking for the running program?Use the locking concept. You can either create your own, or a popular one to use is ESINDX, passing parameters: relid 'ZZ', SRTFD program name, and SRTF2 = 0.
The logic is:
Attempt to get lock (FM ENQUEUE_ESINDX, perhaps).
If lock got -> run program
If lock not got -> quit.
You have to put this logic at the start of your program.
matt -
Hi All,
I am using OWB 11gR2 and I am getting "perl" location error after start workflow for any dimension or fact.
*Cannot run program "/usr/bin/perl": CreateProcess error=2, The system cannot find the file specified
The log is below. I am using Windows 2008 R2 OS and 11gR2 DB. The perl path is set in the environment variables and I can run the perl.exe from command line.
Why OWB is looking for the Unix base path "/usr/bin/perl": is a question for me.
If anybody knows the issue please guide me.
Thanks
OUBIWF_D_DEVICE_ACTIVITY_TYPE 2012-07-04 16:57:37.0 4
Parameters
OUBIWF_D_DEVICE_ACTIVITY_TYPE:FILEMGR_PRE 1 2012-07-04 16:57:38.0 2
Parameters
RPE-02229: The following debug information was collected:
RPE-02230: Debug Information: os.name = Windows Server 2008 R2
RPE-02230: Debug Information: os.version = 6.1
RPE-02230: Debug Information: os.arch = amd64
RPE-02230: Debug Information: user.name = INT-A-MDM-01$
RPE-02230: Debug Information: user.dir = C:\product\11.2.0\dbhome_3\owb\bin\win32
RPE-02230: Debug Information: argv.arg0 = /usr/bin/perl
RPE-02230: Debug Information: argv.arg1 = /spl/intbase/DB/tools/filemgr/splfilemgr.plx
RPE-02230: Debug Information: argv.arg2 = -l
RPE-02230: Debug Information: argv.arg3 = /spl/BIDevelopment/bi2400db
RPE-02230: Debug Information: argv.arg4 = -n
RPE-02230: Debug Information: argv.arg5 = D_DEVICE_ACTIVITY_TYPE_EXT.DAT
RPE-02230: Debug Information: argv.arg6 = -p
RPE-02230: Debug Information: argv.arg7 = 1
RPE-02230: Debug Information: argv.arg8 = -s
RPE-02230: Debug Information: argv.arg9 = S
RPE-02230: Debug Information: argv.stdin =
RPE-02230: Debug Information: USERPROFILE = C:\Windows\system32\config\systemprofile
RPE-02230: Debug Information: JAVAPATH = C:\product\11.2.0\dbhome_3\jdk6
RPE-02230: Debug Information: NODEID = 1
RPE-02230: Debug Information: IAS_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: SystemDrive = C:
RPE-02230: Debug Information: RTHOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: Path = C:\product\11.2.0\dbhome_3\bin;C:\product\11.2.0\dbhome_3\jdk6\jre\bin\client;C:\product\11.2.0\dbhome_3\jdk6\jre\bin;C:\product\11.2.0\dbhome_3\owb\bin\admin;C:\Windows\system32
RPE-02230: Debug Information: CONNECT_SPEC = 10.34.32.136:1521:MDM
RPE-02230: Debug Information: PROCESSOR_REVISION = 1a05
RPE-02230: Debug Information: OCM_ORACLE_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: USERDOMAIN = WORKGROUP
RPE-02230: Debug Information: ALLUSERSPROFILE = C:\ProgramData
RPE-02230: Debug Information: TMP = C:\Windows\TEMP
RPE-02230: Debug Information: CommonProgramFiles = C:\Program Files\Common Files
RPE-02230: Debug Information: PROMPT = $P$G
RPE-02230: Debug Information: PROCESSOR_LEVEL = 6
RPE-02230: Debug Information: JVM_OPTIONS = -Xmx768M
RPE-02230: Debug Information: LOCALAPPDATA = C:\Windows\system32\config\systemprofile\AppData\Local
RPE-02230: Debug Information: COMPUTERNAME = INT-A-MDM-01
RPE-02230: Debug Information: SystemRoot = C:\Windows
RPE-02230: Debug Information: ORA_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: USERNAME = INT-A-MDM-01$
RPE-02230: Debug Information: APPDATA = C:\Windows\system32\config\systemprofile\AppData\Roaming
RPE-02230: Debug Information: ProgramData = C:\ProgramData
RPE-02230: Debug Information: PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
RPE-02230: Debug Information: ORACLE_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: RTUSER = OWBSYS
RPE-02230: Debug Information: ProgramFiles(x86) = C:\Program Files (x86)
RPE-02230: Debug Information: TEMP = C:\Windows\TEMP
RPE-02230: Debug Information: OEM_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: ProgramFiles = C:\Program Files
RPE-02230: Debug Information: JDK_HOME = C:\product\11.2.0\dbhome_3\jdk6
RPE-02230: Debug Information: OCM_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: ProgramW6432 = C:\Program Files
RPE-02230: Debug Information: PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
RPE-02230: Debug Information: STARTUP_TYPE = -manual
RPE-02230: Debug Information: PROCESSOR_ARCHITECTURE = AMD64
RPE-02230: Debug Information: OS = Windows_NT
RPE-02230: Debug Information: FP_NO_HOST_CHECK = NO
RPE-02230: Debug Information: CommonProgramW6432 = C:\Program Files\Common Files
RPE-02230: Debug Information: ORACLE_SID = mdm
RPE-02230: Debug Information: DISCOVERER_ALLOW_DB_CONNECT_STRING = YES
RPE-02230: Debug Information: OWB_HOME = C:\product\11.2.0\dbhome_3
RPE-02230: Debug Information: NUMBER_OF_PROCESSORS = 2
RPE-02230: Debug Information: PUBLIC = C:\Users\Public
RPE-02230: Debug Information: PSModulePath = C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
RPE-02230: Debug Information: CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
RPE-02230: Debug Information: ComSpec = C:\Windows\system32\cmd.exe
RPE-02235: The operating system has reported that it cannot execute the requested command. This may be because the command or the parameters are invalid, or that the command is shell command. Any result code return is specific to the operating system. Debug information has been produced.
Cannot run program "/usr/bin/perl": CreateProcess error=2, The system cannot find the file specified
OUBIWF_D_DEVICE_ACTIVITY_TYPE:EMAIL_FILEMGR 1 2012-07-04 16:57:40.0Parameters
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at "SYS.UTL_TCP", line 17
ORA-06512: at "SYS.UTL_TCP", line 267
ORA-06512: at "SYS.UTL_SMTP", line 161
ORA-06512: at "SYS.UTL_SMTP", line 197
ORA-06512: at line 8Hi There
Am experiencing the same issue. Did you manage to resolve it, is so can you advice what the resolution is. Thanks
Regards,
Kayode -
Hi
I have created a sample Fusion Web Application(ADF) and created a test.jsp in viewcontroller with few components. I have started the integrated weblogic server and started successfully, but when I run test.jsp it is giving me the below error
Error: Cannot run program "C:\Oracle\Middleware\jdk160_21\jre\bin\javaw.exe" (in directory "C:\Documents and Settings\chowdamr\Application Data\JDeveloper\system11.1.1.4.37.59.23\o.jdeveloper\DefaultWorkspace"): CreateProcess error=267, The directory name is invalid.
Initially this page is working successfuly.
Please tell me whats the problem.
Edited by: 858782 on May 13, 2011 5:28 AMThere are some problems when JDev's system directory (e.g. the \system11.1.1.4.37.59.23 directory) is in a path that contains spaces (as it is in your case - C:\Documents and Settings\...). Move the system directory to a path without spaces and try again. The simplest way to move it is to start JDeveloper in a "single user" mode (use <tt>jdeveloper.exe -singleuser</tt>) which will create the system directory within JDev's home directory. Of course, if your JDeveloper is installed in a path containing spaces, it will not work either (for example, if JDev is in C:\Program Files\...).
Have a look here for a more sophisticated approach for moving the system directory to another location:
http://technology.amis.nl/blog/8387/change-the-jdeveloper-system-directory
Dimitar
Maybe you are looking for
-
Getting error in PSA while trying to load data in cube
Dear Friends, I am trying to load data in cube I am getting error in PISA i.e. Value 'Boroplus Anticream 19Gm Regular Plain ' (hex. '426F726F706C757320416E7469637265616D203139476D2052') of characteristic . please guide me. Thanks in Advance. Bes
-
Connect Mac Mini 2011 to iMac 2010 via MiniDisplay Port?
Thought I read somewhere that a Mac mini could be connected to a 27" iMac for display purposes. I have the 27" iMac from 2010 and it has the minidisplay port. I'm considering getting the new Mac Mini. Can the two be connected so that the iMac display
-
Creating management accounts for protected accounts and groups in Active Directory
I'm following step-by-step instruction for creating management accounts for protected groups that I found in Microsoft book "Best Practise for Securing Active Directory", published april 2013. What is confusing me is the "Enabling management accounts
-
Hi All, Where we need to Install the BIC Mapping Designer ???? In XI Server Or in Some Other Server is also Ok ???? Please Let me Know Regards Bopanna
-
NCS Config - Am I doing it right?
Hi All, I have deployed a couple of NCS servers so far, and whilst I think I've covered everything I'm still not sure, as apart from the config guide, which I have gone through a couple of times, there isn't much around about any best practices or ex