Remote Debugging via SSH | Netbeans [duplicate] - java

This question already has answers here:
Remotely debug unit tests in Netbeans / Maven
(2 answers)
Closed 6 years ago.
I'm programing on an embedded linux system calls BeagleBone Black. I'm using JDK vers. 1.6 to run my programms.
At the moment i write code on my normal pc (win7), create a .jar and transfer it via FileZilla to the Linux system (arm7). Then i connect with the embedded system using Putty (ssh tunnel) and start my programm ..."java -jar [name].jar"
Now i'm searching for a way to connect Neatbeans directly to the linux system. To bypass this laborious methode. Is there a way to debugg a programm on my pc via netbeans and it will automatically run on linux? (with console output in netbeans)?
How to configurate the ide for such a task?
Or is there alternative option?
Thanks

You can create a shared folder into the Beagle Bone via SSH an use it as a normal folder.
I am not sure about if you can do this on windows, but im sure that linux can!

Related

Load desktop application on Windows startup [duplicate]

This question already has answers here:
Run Java application at Windows startup
(8 answers)
Closed 6 years ago.
I have Java desktop application, which runs fine. I can double click on exe or run jar file and runs properly.
I want to load this application whenever system starts. How can I achieve this programmatically?
Or is there any tool available to create exe in such a manner, that once we install it creates shortcut in system startup folder.
I want it be system or code driven rather than individually placing exe in startup folder.
You can set up the exe as a windows service with these steps:
open command prompt as administrator
type this:
sc.exe create <service_name> binPath= "<path to your exe> --service" DisplayName= "<somename>" start= "auto"

Pulling files from remote system using java Runtime.exec on mac

All along I have been pulling the remote files using the Runtime.exec() first by connecting the windows remote machine using "use net.." and then pulling the required files. Now I have a new mac machine and I am unable to connect to that windows remote using java code. I can access the server from finder window using below command:
smb://userName:password#ipAddress/pathToFileOnRemote
but when I run this command in java code using the Runtime.exec() method, I get an error stating No such file or directory.
Is there a different way to access the file on the windows remote from mac as compared to windows?

How can I run java class file using a script file in Linux at boot time? [duplicate]

This question already has answers here:
How to run a shell script at startup
(22 answers)
Closed 7 years ago.
How can I run java class file using a script file in Linux at boot time?
I have some java class file .I want that file should run at boot time when machine restart.I want to write a Script file that run those of my java classes at machine startup.
What linux distro are you using?
If you use Ubuntu then you can take a look at the upstart deamon which handles the task of starting processes during boot.
In general you create a script under /etc/init.d, described in detail here
Since i only created bash scripts there and i dont know much about Java this link might be helpful

To launch browser with Jenkins [duplicate]

This question already has answers here:
Jenkins : Selenium GUI tests are not visible on Windows
(9 answers)
Closed 9 years ago.
Configured Jenkins (with Tomcat) on Win7 to launch my maven command. With My maven command i am launching selenium test scripts which launches web broswer and execute the test cases.
Problem: When i trigerrs build using Jenkins, build started and shows everything on Jenkins - Console. it even generates proper html report (which i set in my selenium java code). But everything happens in silent mode (without launching the browser)
Question: where and how to configure Jenkins/Tomcat to launch the browser?
It may be easier to set up a Selenium Grid. This would also allow you to test on different OS and browsers to that set up on your Jenkins box.
It also supports parallel testing if your test framework supports threads.
http://code.google.com/p/selenium/wiki/Grid2

invoke a linux shell command from Java between two linux system computer [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I execute Linux commands on a remote machine using Java?
In my linux client computer, I am trying to invoke a linux shell on the other linux server.
Then I would show the result on the client computer.
The command looks like this: grep 11111 userId.log
Are there any java open source project can do this?
If you can ssh to the other computer, you can use the Jsch library to do this in java.

Categories

Resources