I have generated an install4j Windows installer. I want the installer to run on a remote Windows machine and have to debug the installation process. The installed JVM is 1.8_161. I have tried several option in my vmoptions file:
-Xdebug
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999
or
-Xdebug
-Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999
Neither configuration works. The vmoptions' file name is the same as the media file's name except the extension.
I hadn't any problems with debugging earlier remote installers.
Best regards
anko
The installer does not read a .vmoptions file for security reasons, because installers are often saved in writable locations when they are downloaded.
You have to pass -J-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9999 on the command line (note the -J prefix)
Related
Netbeans has a terminal window but it requires cygwin to be installed. Since I can't install cygwin (it requires admin permission), is there a way to open a Windows command line prompt(cmd) inside Netbeans?
Cygwin does need to be installed for NetBeans to have a Terminal window, and by default administrator rights are required to install it. However you can override that default requirement using the --no-admin argument when you install it.
See section 2.4 of the Cygwin FAQs:
2.4.
Can I install Cygwin without administrator rights?
Yes. The default installation requests administrator rights because
this allows to set up the Cygwin environment so that all users can
start a Cygwin shell out of the box. However, if you don't have
administrator rights for your machine, and the admins don't want to
install it for you, you can install Cygwin just for yourself by
downloading setup-x86.exe (for a 32 bit install) or setup-x86_64.exe
(for a 64 bit install) and then start it from the command line or via
the "Run..." dialog from the start menu using the --no-admin option,
for instance:
setup-x86.exe --no-admin
(While this is an answer, I am unfortunately not in a position to verify that it actually works.)
Make sure your Netbeans is closed while installing the Cygwin plugin, preferably download the . msi file for your PC's architecture(32 or 64 bits).
Thereafter Click on the tools bar above then you'll seen open in Terminal that should provide a terminal at the bottom of your Netbeans program.
Most importantly ensure your Netbeans is closed during installation.
Getting
java.io.IOException: Cannot run program "C:\Program Files\NetBeans
8.2\bin\netbeans.exe" (in directory "C:\Program Files\NetBeans 8.2"):
CreateProcess error=2, The system cannot find the file specifiedat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I tried downloading and installing netbeans and the JDK bundle and still getting this. Might be netbeans independent but my system that's causing it.
Note the location of the installer.
Open a Command Prompt running as administrator:
2.1. Go to Start button > All Programs > Accessories
2.2. Right click Command Prompt
2.3. Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-8.2-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
Once Netbeans is installed on Windows 7, you may also need to run Netbeans as an Administrator--especially for database, web application and web services development, which each require server resources.
Source
I'm making multiplatform(win and linux without GUI) installer for my application - using install4j.
Install4j creates application.sh installation file. When I run this sh file - my application is installed on linux machine. But whats the correct way how to uninstall my application? No uninstaller.sh was created. Should I run application.sh with some additions arguments? Thanks
The uninstaller is created wherever you specify it. On Installer->Screens & Actions, select the "Uninstaller" and check its "Executable name" and "Executable directory" properties.
I have installed swig on my mac and it works in the console just fine. If I type swig -verison in terminal it spits out the version. Eclipse keeps telling me that it can't find swig. I am using the liquidfun library http://google.github.io/liquidfun/SWIG/html/index.html and it told me to put this export SWIG_BIN=$("which" swig) in .bashrc, which I did. This enviroment variable registers through terminal as well. Eclipse STILL won't grab swig properly. What the hell?
Bash reads .bash_profile, .bash_login or .profile. I don't expect the Eclipse process to load such a file (although I could be wrong) nor the SWIG_BIN variable to augment its search path for executables, but if you launch Eclipse from the shell, it should inherit the shell's environment variables.
Try running swig from eclipse using a full absolute path (the one that "which" returns).
The eclipse.ini file can set some startup parameters but perhaps not the path. There might be other eclipse startup files.
Another possibility is to add swig's directory to the path in a login script. (To test that, log out and back in, then start eclipse.)
I use Windows xp with cygwin to run web-logic server that is located in my machine.
So I have the whole setup in one machine.
But I couldn't make the remote debugger to work with Eclipse.
Here is the debug command in startWSL.sh
export DEBUG_OPTS = -Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y
But I couldn't debug from Eclipse, the connection times out.
Do I miss something that I need to do when using CYGWIN?
Help appreciated!!!
DEBUG_OPTS is not a recognized env variable in startWebLogic.sh standard script. You may want to use JAVA_OPTIONS variable instead.