ProcessBuilder: Cannot run program
Hello,
In my code I need to run a windows application. Through the Command Prompt I would type:
C:\>"C:\Documents and Settings\Simpatico\My Documents\Woerter Speichern Files\changeBackgroud" "C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\testimage.bmp"In Java I wrote:
ProcessBuilder pb = new ProcessBuilder("C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\changeBackground", C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files\\testimage.bmp);
pb.directory(new File("C:\\Documents and Settings\\Simpatico\\My Documents\\Woerter Speichern Files"));
try {
pb.start();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();And I get:
java.io.IOException: Cannot run program "C:\Documents and Settings\Simpatico\My Documents\Woerter Speichern Files\changeBackground": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)The problem is with executing the application, changeBackground in the first place, and not the parameter passing.
simpatico_gabriele wrote:
1. They are not. Please qualify ur claim.All right, I will. Your code is like this:
ProcessBuilder pb = new ProcessBuilder("C:\\Documents and Setting...{code}
The string you pass as a parameter there starts with the letter C, not with a quote. You still don't believe it? Try this:
{code}System.out.println("C:\\Documents and Setting");{code}
Notice how what's printed out doesn't start with a quote?
It's really annoying how you ask for help and then flatly reject it when it's given. This is the last help I will be giving you.
Similar Messages
-
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 -
Java.io.IOException: Cannot run program "ant"
Hi all,
I'm running a Job in Hudson.
I build this job from a Hudson Master Server but the job is built in a Hudson Linux Node.
This is the result:
Started by user builder
Building remotely on Linux-Node
Updating http://150.200.20.200:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
At revision 529
Updating http://150.200.200.200:8000/mvtv_all/DESCOS/KaluModules/branches revision: 17-may-2013 16:01:46 depth:infinity ignoreExternals: false
At revision 529
no change for http://159.200.300.20:8000/mvtv_all/DESCOS/MVTVc_D2ph1/branches since the previous build
no change for http://159.230.300.20:8000/mvtv_all/DESCOS/KaluModules/branches since the previous build
No emails were triggered.
[bt] $ ant -file build.xml -DSUBSYSTEM=ALL -DTARGET=makeBuild -DCRLIST= -DOWNER= -DbuildTool.patch.release=$RELEASE -DbuildTool.system=$SYSTEM -DbuildTool.patch.type=$PATCH_TYPE -DbuildTool.subsystem=ALL -DbuildTool.buildRules=pkgBuild -DbuildTool.dynamicView=$WORKSPACE/ALL -DbuildTool.compilationRules=compile -DbuildTool.patch.name=$PATCH_NAME makeBuild
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
java.io.IOException: Cannot run program "ant" (in directory "/hudson/buildTool/src/bt"): error=2, No existe el fichero o el directorio
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at hudson.Proc$LocalProc.<init>(Proc.java:192)
at hudson.Proc$LocalProc.<init>(Proc.java:164)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:639)
at hudson.Launcher$ProcStarter.start(Launcher.java:274)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:794)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:768)
at hudson.remoting.UserRequest.perform(UserRequest.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:283)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: error=2, No existe el fichero o el directorio
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
... 15 more
Do you know something about this issue?
Thanks and RegardsNo, and this is not the Hudson forums either. But see this error?
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?Try posting that in Google and see what you get. That's basic misery solution research 101. Post the error in Google. 999/1000 times someone has already run into it before. Please learn from their experiences by reading through them. -
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 -
Cannot run program "keytool": java.io.IOException
Hi,
I would like to follow the procedure to change the master password
of glassfish server hosting APEX listener
using the change-master-password subcommand, but the utility keytool
is not found:
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> /opt/glassfish3/bin/asadmin
/opt/glassfish3/bin/asadmin
Use "exit" to exit and "help" for online help.
asadmin> change-master-password mydom01
Enter the current master password> changeit
Enter the new master password> changedit
Enter the new master password again> changedit
Cannot run program "keytool": java.io.IOException: error=2, No such file or directory
Command change-master-password failed.
asadmin>
Command multimode failed.
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config>
All of glassfish is running fine apart from this.
keytool could be found in /usr/java/latest/bin/keytool.
Do we need to have this in the path? There is no requirement in the
install guide for this, nor did the RPM installation adjust the system
path accordingly.
Hopefully someone can tell my how things ought to be regarding keytool?
Thanks, TomHi Tom,
the procedure to change the master password of glassfish server hosting APEX listener... sounds more like a GlassFish-related topic to me. I guess you'd get the best answers for such questions in a GlassFish-related forum...
For what it's worth, I'll try my best anyway:
Cannot run program "keytool": java.io.IOException: error=2, No such file or directoryThis seems to be a pretty clear error message: keytool , which is probably used to manage the keys for GlassFish users, wasn't found. This means, you're either running on an OS that is not officially certified for GlassFish, or you GlassFish hasn't been configured properly.
You ran
glassfish@ahost:/opt/glassfish3/glassfish/domains/mydom01/config> which java
/usr/bin/java... which indicates you assume your GlassFish is running without JAVA_HOME being set. If that's true, I'd begin to setup you GlassFish properly starting with that parameter.
Anyway, you also found out that
keytool could be found in /usr/java/latest/bin/keytool.... which is not +/usr/bin+ and hence probably not in the global search path of the user on whose behalf your GlassFish is running. So, you could either create a link-set[*] for +/usr/bin/keytool+ to (finally) point to +/usr/java/latest/bin/keytool+, or you setup JAVA_HOME to be +/usr/java/latest+ .
[*] Note that depending on your OS there might be more than one stage of indirection, e.g. my Ubuntu has +/usr/bin/java+ pointing to +/etc/alternatives/java+ which is pointing to +/usr/lib/jvm/java-6-sun/jre/bin/java+ where +/usr/lib/jvm/java-6-sun/+ is pointing to the directory containing the actual JDK to be used. You'll probably find something like that on your system as well. My Ubuntu box has a link for +/usr/bin/keytool+, so I get that when running "which keytool".
Do we need to have this in the path? There is no requirement in the install guide for this, nor did the RPM installation adjust the system path accordingly.Again, this is not a GlassFish forum.
I hope my hints help you solve your problem. If they don't, please choose the appropriate forum for your next post on that topic. And I guess, giving some more information on your OS and how you manage your JDK (and which version you use) will help people there to help you.
Thanks,
Udo -
CAN COMPILE BUT CANNOT RUN PROGRAM
I am finally able to compile my program, I have the extensions .class, when I try to run the program I get an error message "main"java.lang.noclassdef
after message appears after I type java Saluton or whatever program I am trying to run.
Any suggestions, someone justed I use textpad, but I don't think this has anything to do with not being able to run programs, I am using windows 98 second edition.This is a CLASSPATH problem.
For example, if your .class file is in the directory C:\javaclasses then you would set the CLASSPATH environment variable to that using:
set CLASSPATH=C:\javaclasses
Add this to your autoexec.bat and reboot so you don't have to type this every time you open a DOS prompt.
You may want to add the current directory, ., to the list of directories (use ; to separate directories).
set CLASSPATH=.;C:\javaclasses
If your class is part of a package, you have to use the directory that is the parent of the packages' directories. -
I have setup program RSWUWFML2 to run every 15 minutes through SM36 (Background Job Processing). However, I cannot get our Batch user to run it. When I assign any other user with proper authorization to run the program, it works. But whenever I change the user to our Batch user, the program does not want to run.
This is not an authorization issue because our Batch user has all the authorizations the other users have that are able to run the program. Why would a Batch user not be able to run the program?
All help is appreciated!Could it be that it's your own user that is not allowed to select batch user for the job. Use ST01 (trace authorization) to make sure.
-
OSX 10.4.2 tried to update itunes now cannot run program
I know it's an old computer (iBook, 2003)--but it has to hang in there for a few more months! Tried to update the iTunes, for the sole purpose of using the ipod, and it let me--but now a message states it can't run the program at all. Tried CDs--opens Quicktime. Cannot update QT b/c computer's too old and slow. I would love to update it to something before 7.3...ideas?
Mac Mac OS X (10.4.2)It's an upgrade as it is! Recently the hard-drive crashed and I upgraded to the current OSX 10.4.2. I don't have enough memory to go any higher. I'm looking for a new Mac--but my paychecks can't handle that yet.
Mac Mac OS X (10.4.2) iBook -
[SOLVED] configure: error: cannot run C compiled programs
I'm trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.
makepkg messages:
==> Making package: lib32-libxkbcommon 0.5.0-1 (Mon May 11 00:17:05 EEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found libxkbcommon-0.5.0.tar.xz
==> Validating source files with sha256sums...
libxkbcommon-0.5.0.tar.xz ... Passed
==> Extracting sources...
-> Extracting libxkbcommon-0.5.0.tar.xz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc -m32
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...
makepkg.conf:
# /etc/makepkg.conf
# SOURCE ACQUISITION
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync --no-motd -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#-- The package required by makepkg to download VCS sources
# Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
'git::git'
'hg::mercurial'
'svn::subversion')
# ARCHITECTURE, COMPILE FLAGS
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j5"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
# BUILD ENVIRONMENT
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
BUILDENV=(!distcc color !ccache check !sign)
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
# A negated option will do the opposite of the comments below.
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- upx: Compress binary executable files using UPX
#-- debug: Add debugging flags as specified in DEBUG_* variables
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
# PACKAGE OUTPUT
# Default: put built package and cached source in build directory
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <[email protected]>"
#-- Specify a key to use for package signing
#GPGKEY=""
# COMPRESSION DEFAULTS
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
# EXTENSION DEFAULTS
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:
config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libxkbcommon configure 0.5.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr --libdir=/usr/lib32 --disable-docs --disable-static
## Platform. ##
hostname = Arch
uname -m = x86_64
uname -r = 4.0.1-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
## Core tests. ##
configure:2424: checking for a BSD-compatible install
configure:2492: result: /usr/bin/install -c
configure:2503: checking whether build environment is sane
configure:2558: result: yes
configure:2709: checking for a thread-safe mkdir -p
configure:2748: result: /usr/bin/mkdir -p
configure:2755: checking for gawk
configure:2771: found /usr/bin/gawk
configure:2782: result: gawk
configure:2793: checking whether make sets $(MAKE)
configure:2815: result: yes
configure:2844: checking whether make supports nested variables
configure:2861: result: yes
configure:2987: checking whether to enable maintainer-specific portions of Makefiles
configure:2996: result: yes
configure:3023: checking for style of include used by make
configure:3051: result: GNU
configure:3122: checking for gcc
configure:3149: result: gcc -m32
configure:3378: checking for C compiler version
configure:3387: gcc -m32 --version >&5
gcc (GCC) 5.1.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3398: $? = 0
configure:3387: gcc -m32 -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-5-20150505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
Thread model: posix
gcc version 5.1.0 (GCC)
configure:3398: $? = 0
configure:3387: gcc -m32 -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3398: $? = 1
configure:3387: gcc -m32 -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3398: $? = 1
configure:3418: checking whether the C compiler works
configure:3440: gcc -m32 -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
configure:3444: $? = 0
configure:3492: result: yes
configure:3495: checking for C compiler default output file name
configure:3497: result: a.out
configure:3503: checking for suffix of executables
configure:3510: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
configure:3514: $? = 0
configure:3536: result:
configure:3558: checking whether we are cross compiling
configure:3566: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
In file included from /usr/include/stdio.h:27:0,
from conftest.c:11:
/usr/include/features.h:365:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
configure:3570: $? = 1
configure:3577: ./conftest
./configure: line 3579: ./conftest: No such file or directory
configure:3581: $? = 127
configure:3588: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
configure:3590: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
## Cache variables. ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value='gcc -m32'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DOT_set=
ac_cv_env_DOT_value=
ac_cv_env_DOXYGEN_set=
ac_cv_env_DOXYGEN_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib32/pkgconfig
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XCB_XKB_CFLAGS_set=
ac_cv_env_XCB_XKB_CFLAGS_value=
ac_cv_env_XCB_XKB_LIBS_set=
ac_cv_env_XCB_XKB_LIBS_value=
ac_cv_env_XORG_MALLOC_DEBUG_ENV_set=
ac_cv_env_XORG_MALLOC_DEBUG_ENV_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC='gcc -m32'
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## Output variables. ##
ACLOCAL='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing aclocal-1.14'
ADMIN_MAN_DIR=''
ADMIN_MAN_SUFFIX=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
APP_MAN_DIR=''
APP_MAN_SUFFIX=''
AR=''
AUTOCONF='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing automake-1.14'
AWK='gawk'
BASE_CFLAGS=''
BUILD_LINUX_TESTS_FALSE=''
BUILD_LINUX_TESTS_TRUE=''
CC='gcc -m32'
CCDEPMODE=''
CFLAGS='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
CHANGELOG_CMD=''
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2'
CWARNFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DOT=''
DOXYGEN=''
DRIVER_MAN_DIR=''
DRIVER_MAN_SUFFIX=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_DOCS_FALSE=''
ENABLE_DOCS_TRUE=''
ENABLE_X11_FALSE=''
ENABLE_X11_TRUE=''
EXEEXT=''
FGREP=''
FILE_MAN_DIR=''
FILE_MAN_SUFFIX=''
GREP=''
HAVE_DOT=''
HAVE_DOT_FALSE=''
HAVE_DOT_TRUE=''
HAVE_DOXYGEN_FALSE=''
HAVE_DOXYGEN_TRUE=''
HAVE_NO_UNDEFINED_FALSE=''
HAVE_NO_UNDEFINED_TRUE=''
INSTALL_CMD=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_MAN_DIR=''
LIB_MAN_SUFFIX=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MAN_SUBSTS=''
MISC_MAN_DIR=''
MISC_MAN_SUFFIX=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libxkbcommon'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon'
PACKAGE_NAME='libxkbcommon'
PACKAGE_STRING='libxkbcommon 0.5.0'
PACKAGE_TARNAME='libxkbcommon'
PACKAGE_URL='http://xkbcommon.org'
PACKAGE_VERSION='0.5.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
RANLIB=''
RT_LIBS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRICT_CFLAGS=''
STRIP=''
VERSION='0.5.0'
XCB_XKB_CFLAGS=''
XCB_XKB_LIBS=''
XKBCONFIGROOT=''
XLOCALEDIR=''
XORG_MALLOC_DEBUG_ENV=''
XORG_MAN_PAGE=''
YACC=''
YACC_INST=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc -m32'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/install-sh'
libdir='/usr/lib32'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## confdefs.h. ##
/* confdefs.h */
#define PACKAGE_NAME "libxkbcommon"
#define PACKAGE_TARNAME "libxkbcommon"
#define PACKAGE_VERSION "0.5.0"
#define PACKAGE_STRING "libxkbcommon 0.5.0"
#define PACKAGE_BUGREPORT "[url]https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon[/url]"
#define PACKAGE_URL "[url]http://xkbcommon.org[/url]"
#define PACKAGE "libxkbcommon"
#define VERSION "0.5.0"
configure: exit 1
other info:
core/pacman 4.2.1-1
multilib/gcc-multilib 4.9.2-4 (multilib-devel) [installed]
The GNU Compiler Collection - C and C++ frontends for multilib
multilib/lib32-fakeroot 1.20.2-1 (multilib-devel) [installed]
Tool for simulating superuser privileges (32-bit)
multilib/lib32-libltdl 2.4.5-1 (multilib-devel) [installed]
A generic library support script (32-bit)
Last edited by tsester (2015-05-10 22:10:28)tsester wrote:P.S.: I recently transfered the linux system between failing disks
In that case you should probably check that no other packages are missing files with
pacman -Qkk 2>&1 | grep "No such file or directory"
Any packages that report that they're missing files, you should reinstall. -
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 -
Configure: error: cannot run C compiled programs.
Hi,
I am new to Solaris. I have installed Solaris 10 and compiled packages without any error.
I have tried to compile Wireshark 1.7.1 and it was exist indicating '/usr/include/sys/feature_tests.h no such file or directory'.
So I have download feature_tests.h file and uploaded it to the relevant location and run ./configure again.
Now I am not able to compile any package and it indicate error
'configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details'
I have attached portion of the config.log
configure:3739: checking whether the C compiler works
configure:3761: gcc conftest.c >&5
configure:3765: $? = 0
configure:3813: result: yes
configure:3816: checking for C compiler default output file name
configure:3818: result: a.out
configure:3824: checking for suffix of executables
configure:3831: gcc -o conftest conftest.c >&5
configure:3835: $? = 0
configure:3857: result:
configure:3879: checking whether we are cross compiling
configure:3887: gcc -o conftest conftest.c >&5
In file included from conftest.c:11:
/usr/include/stdio.h:21:31: sys/feature_tests.h: No such file or directory
In file included from /usr/include/stdio.h:66,
from conftest.c:11:
/usr/include/iso/stdio_iso.h:90: error: syntax error before "fpos_t"
/usr/include/iso/stdio_iso.h:208: error: syntax error before "fpos_t"
/usr/include/iso/stdio_iso.h:210: error: syntax error before '*' token
In file included from /usr/include/stdio.h:135,
from conftest.c:11:
/usr/include/iso/stdio_c99.h:54: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:54: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:56: error: redefinition of parameter '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:56: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:68: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:68: error: previous definition of '_RESTRICT_KYWD' was here
/usr/include/iso/stdio_c99.h:70: error: conflicting types for '_RESTRICT_KYWD'
/usr/include/iso/stdio_c99.h:70: error: previous definition of '_RESTRICT_KYWD' was here
configure:3891: $? = 1
configure:3898: ./conftest
./configure: line 3900: ./conftest: No such file or directory
configure:3902: $? = 127
configure:3909: error: in `/wireshark-1.6.7':
configure:3911: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details934802 wrote:
Hi,
I am new to Solaris. I have installed Solaris 10 and compiled packages without any error.
I have tried to compile Wireshark 1.7.1 and it was exist indicating '/usr/include/sys/feature_tests.h no such file or directory'.
So I have download feature_tests.h file and uploaded it to the relevant location and run ./configure again.
Now I am not able to compile any package and it indicate error Where did you get this file? -
When I tried to open a fresh iTunes download my computer gave the error message : 'program cannot run in DOS mode'. Since both items are Apple, why might this be happening?
Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
(99602) -
JavaService - can install java program into win2k service, but cannot run
i have a JavaService problem: i can install java program into win2k service, but cannot run
the version of javaservice is 2.0.7.0
the following is the message:
C:\DailyUpdate\dist>JavaService.exe -install DailyUpdate C:\Program Files\Java\j
dk1.5.0_05\jre\bin\client\jvm.dll -Djava.class.path=C:\DailyUpdate\dist\ftpbean.
jar;C:\DailyUpdate\dist\mysql-connector-java-3.0.10-stable-bin.jar;C:\DailyUpdat
e\dist\DailyUpdater.jar -Xms16M -Xmx64M -start DailyUpdateHandler -params C:\Dai
lyUpdate\dist -out C:\DailyUpdate\dist\logs\out.log -err C:\DailyUpdate\dist\lo
gs\err.log
The DailyUpdate automatic service was successfully installed
The DailyUpdate service is starting.
The DailyUpdate service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.I might be doing some programming for my company soon
which will require a program to monitor a database
and whenever there is a change to certain fields, it
must copy certain fields into another database. When I see "whenever thiere is a change to certain fields" I tend to think "triggers" - but maybe this won't work for you 'cause of the "another database" part. And the fact that triggers are inherently evil.
[snip]
Is it possible to run a Java program as a windows
service? And if so then how would you go about it? I'd hit Google - there're a couple ways to do this.
[snip]
Also,...if I were to use one of those programs which
can make an .exe of a Java program, then do you still
require the JRE to be on the machine? It depends on how you did the conversion. If you compile to native then no, if you just wrap up a JRE then yes.
Why I ask is
that I occasionally get asked to do small development
projects for my company, but we are a microsoft
partner and therefore do all the development in C#
and the like. So I would like to just implement as
many things in Java as I can, just to show everyone
that Java can do exactly what C# can do. But its
difficult to convince people of this since I always
require the JRE and they dont. Of course, they require the .NET framework and you don't. And last I looked that thing was around 23 Meg. -
I am running Mac OS 10.6.7 I cannot run a java based program from the net when parental controls are set the error is The error is Load: class installer.CheckVersion 13. class not found
Then, talk to the person running the lab.
Maybe you are looking for
-
Error message in Report designer "Activate Default Theme: 0TRADESHOW"
Hi, While working in Report Designer, I repeatedly get an error message saying "Activate Default Theme: 0TRADESHOW. See Note 1071338". After following the instructions and activating this theme, the problem still persists. Anyone with a solution to t
-
How do you change default search engine?
Want to use something other that Google. Is this not possible? Anyone know a terminal hack or command that might enable me to substitute bing or acid search or something else?
-
I want to email a spreadsheet in landscape
I have creates a spreadsheet in my iphone 4 and when I email it as a PDF it is sent as two pages with the right end column on the second page. I can not see any control to have it sent in landscape form which would solve the issue. Any ideas?
-
Acrobat X Pro - Duplication of form fields
I use Acrobat X Pro to make fillable forms and frequently have an issue with form fields duplicating over top of each other when I try to format a group of fields. Our forms are often several pages in length and it's very time consuming to have to re
-
Highlighting objects in preiere elements 11
i'm making a sports highlight video in prem ele 11. how do i highlight something at the start of each play. either an arrow or open circle would work