I am trying to experiment a bit with JSch library in order to create a simple Java app that gets a remote shell.
I used this example as reference:
http://www.jcraft.com/jsch/examples/Shell.java.html
which works fine but autocompletion of commands is not supported.
I am executing my jar from cmd/Windows and the remote shell is a Linux machine.
I don't get any error messages or warnings.
In the example it says something about lacking terminal-emulation. Is this maybe the issue? Any advice on how I can bypass this issue will be appreciated.
For autocompletion, you need to implement terminal emulation. It is not implemented by JSch.
See also Displaying Midnight Commander screen in JTextPane.
Related
I am building one application using Spring 4.0 where, I need to know System login and turn off time in my application.
I didn't try anything for this because I really don't know how to do this even it is possible or not.
While we open system is there any file in OS where time is storing automatically, if no is there any other way to solve this.
Please help me to do this.
Thanks in advance.
in windows :
#net statistics server
The line that start with "Statistics since …" provides the time that the server was up from
in linux use
#uptime
run that command using process builder in java.
I am running Matlab without the Java graphical interface (matlab -nojvm) and I would like to get an email when a script finished running (I am running tons).
I tried using sendmail and matlabmail but both require Java. I also tried using the Linux command mail but it doesn't work. Do you have any tips on how to solve the problem?
You can suppress the graphical window without loosing java functionality by using matlab -nodisplay. This way, sendmail still works in my case.
Please can you assist me on how to connect JAVA to IBM PCOMM and interact with its screen. Right now, I am just running IBM PCOMM using AutoHotKey (Run and SendInput), no API at all, just an automated keyboard input care of AHK script.
I am also thinking of writing AHK script to connect to IBM PCOMM and run it in my JAVA program as exe, but unfortunately, I don't know either how to write that script.
I am using Eclipse JUNO.
I'm also doing the same things like your. I'm using jacob - a com-java bridge component for java. I've just started my project for one week and the result I've got is quite fessible. Until know, I can wrap all the PCOMM com object by java and work with it properly. You can study jacob at this link: http://sourceforge.net/projects/jacob-project/ and danadler.com/jacob/ .
I am new to Java card programming. Any help for the following issue will be appreciated.
Installing of JCOP tools along with eclipse is completed.
I am able to run sample applications and send command using JCOP shell.
But I am unable to run my own created project's script file or find any simulator for testing purpose. Is there any way to communicate between sample applet and simulator?
Any resources to write commands in run.jcsh also would be highly appreciated.
Thanks in Advance.!
Take a look at jCardSim, it is our open source product. You can easily integrate it with any project. For details see http://jcardsim.org
It is possible to see the TCP port being used from the jcop.exe process in the debugger, although it is easier to configure it to run on the default port 8050 (it uses a random port by default). It is then possible to open a connection using /term Remote in the shell. This is explained in the JCOP manuals from integrated in Eclipse help. It may be possible to use /term Remote localhost:[port] if you are not using the default port, but I may be wrong on the details of the command, as I always use the default port.
[initialy posted in the comments section]
I'm running Ubuntu 9.10 and trying to run a Java program I wrote whose source code is located on a remote machine. I'm using ssh to connect using the following command from the terminal:
ssh -X username#hostname
When running the program, one of the GUI frames has its buttons missing from view, but they are clickable and work as expected when I can guess accurately where they are. Running the code from my local machine they are present, and running from another windows machine using X-Windows they are present. Been trying to solve this problem for a few hours now but to no avail. Anyone have any helpful insight how to resolve this issue?
Thanks!
Are you using both Java 5.0 Swing toolkit and Compiz window manager? They tend to not like each other. Try use Java 6.0 or temporarily disable window effects.