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]
Related
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.
I have GWT-Maven project created using IntelliJ. I can build and run it but the browser shows a strange error on home page. How to fix it?
I've tried to create new project and import the existing code but it doesn't help.
Project download: GwtStudy
You need to run it GWT Development mode with Jetty.
The you will get a code server at http://127.0.0.1:9876/
and a web server at: http://127.0.0.1:8888/yourapp.html
See also this video: https://www.youtube.com/watch?v=kx9RxrQZnFA
The tutorial is slightly misleading. You need to run the app by choosing "GWT Development mode with Jetty" and not "GWT development mode" as one may believe following the tutorial (the super dev mode is the standard nowadays).
If you run the app using "GWT development mode" you will start only the code server, that will run the java code, but it will not be able to serve the html page that hosts the stockwatcher application.
If you run it with "GWT Development mode with Jetty" you will get a code server at http://127.0.0.1:9876/ AND the web server at: http://127.0.0.1:8888/stockwatcher.html, that is the URL that you need to open with your browser to see the page that hosts the app (you can see that the docs shows the browser opening the url at port 8888 and not at port 9876).
The answer of Jankos is right but for me it was not enough clear. The video is not strictly needed or related to solve the issue, so I added this answer to help gwt beginners like me.
This is the CodeServer, which compiles your app on-demand, and serves the compiled scripts and their source maps.
You need another web server to serve your webapp, including most importantly an html page that includes the nocache.js script.
Depending on how you "run" your app this may or may not already be the case (you'd need to give more information).
I am working on a project for my users to generate HTML pages, JS files, CSS files etc... through dragging and dropping visual elements and by going through a series of wizzards. The goal I am trying to achieve is to create an application in which users selects a runtime, for example tomcat or nodeJS and then be able to create content for that specific runtime in the manner described above. Part of this application would be the preparing of your runtime, and by that I mean installing tomcat or nodeJS for you. so the big question here would be, how do I run installers through program code ? (java 7/8 mainly)
what I have tried:
Using a strategy design pattern to determine the host platform and run a series of command in the terminal to execute an installer, problem here is that some installers start a wizzard and require further user input. and in some cases the host platform would require elevated permission. Is there perhaps a solution where one adds arguments to the terminal commands to skip an installation wizzard ?
Any help on this subject would be greatly appreciated.
Answer of Fildor was most usefull.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Is there any online IDE for Java?
Is it possible to use eclipse for java coding from internet for eg Browser based IDE or using on some server present on internet cloud?
I am using a machine on which I cannot save eclipse, and java libraries etc but can use internet.
Can anyone suggest me something.
You can try Orion it's a web based Eclipse (from the Eclipse Team)
Options:
Install Eclipse on a computer where you can and then use one of many products to access remote computers (VNC, TeamViewer, ...)
Install Eclipse on a Linux box and use Linux's ability to run programs on remote machines. But here you would have to install X server on the local (the machine you cannot save Eclipse on) machine
I bet there are other options too. :)
Remote access to your own computer at home could be a solution.
Performance depends on how fast your connection is.
Ports have to be open (default: 3389).
Personally I think the best way to do this would be to set up a build server (or continuous integration server) such as hudson or teamcity. You could then edit your code in a web editor (or simply a more lightweight editor) and just commit and push it to the build server. The build server then does all the heavy lifting and tells you if the build/passed or failed. It can even be set up to run your unit tests!
You might want to reference this question in regards to tips on how to set this up. If you use Github you get the added bonus of being able to use Ace to edit files - though I would suggest using a more robust editor and pushing your repository up manually.
If you are really keen on building on the internet you can check out compilr which sounds like what you really want (though I wouldn't recommend it - you really need you own build flow!)**.
** does not imply that the compilr service is not a good one
So I'm working on a project where I would like to be able to have the user browse the Active Directory to find a machine or workstation. I already know that you can envoke this directory search in the command prompt by using:
rundll32 dsquery,OpenQueryWindow
I'm using java for my project and I understand how to capture input from a command that I execute in the program but currently, at home, I'm not connected to a domain so I cannot test what the command returns when a user selects a computer or if it even returns anything. Could someone test this for me and tell me what it returns.
Also, if anyone has any better ideas on how to achieve this without relying on window's tools, like maybe a Java API for Active Directory Services?
Instead of calling an API function using rundll32, you should use a Java based LDAP library which will encapsulate the work in front of the Active Directory (so you won't have to parse the results by yourself).
Also, if anyone has any better ideas on how to achieve this without relying on window's tools, like maybe a Java API for Active Directory Services?
Choosing a pure Java library could help you run your application on many platforms (as opposed to using Windows' rundll32 which will limit you to Windows platform)
Check out this thread: https://stackoverflow.com/questions/389746/ldap-java-library.
currently, at home, I'm not connected to a domain so I cannot test what the command returns
There are solutions for this kind of testing problems. You should read about mocking: http://en.wikipedia.org/wiki/Mock_object
Good luck!
Tal.
Talk to the AD via the LDAP API.