Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was at a conference and there were one presenter who showed some Java 8 code examples in an application, and I'm looking for the name of that or a similar app.
The application compiled all code examples and showed output but the main thing was that he didnt have to write complete java code. It automatically handled imports and class definitions. He could just focus on code he wanted to show. This made it easy to quickly create examples.
Edit; A clarification, this was not a complete IDE. It appeared to be a program specifically designed for quickly writing and testing short code examples. For example, he wrote and showed a for-each loop in Java 8, without any imports or having to create a main class or any of that syntactic fluff.
Check those Integrated Development Environments:
Eclipse
IntelliJ Idea
NetBeans
To improve your presentation you can create templates which will create necessary code for you.
I found out the contact details of the presenter and asked about the program. It turns out he was using Mac with TextMate.
Eclipse provides a similiar feature with its java scrapbook pages.
You can just enter java statements and they can be run.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to mutate a function of a class that is loaded at runtime (it has a bug in it but the project is long gone so i cannot build the binary). What i want to do instead is write a piece of code which will run during the application initialization phase and mutate this function so that it works fine. And simply keep that code around until the replacement is ready.
Having no experience with bytecode modification what library could i use to modify and reload a class at runtime? Specifically i need to replace a throw instruction with a noop instruction (i did this once using hex editor but lost the binary).
Also if you know any tutorial on how to do something like that please share.
I can see many libraries for doing this but i cant know which ones are good/bad do the job...
I think use Java Attach API. Java Attach API is procedure of loading a Java agent into an already running JVM. you can understand the work of javaagents by reading the Java Instrument javadoc. AgentMain help to you.
Agentmain is invoked when an agent is started after the application is already running. Agents started with agentmain can be attached programatically using the Sun tools API (for Sun/Oracle JVMs only -- the method for introducing dynamic agents is implementation-dependent).
This tutorial is useful about java instrumentation.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm collecting samples from Output of a several programs. the number of sample files are too many and it is impossible to be done manually. I have to apply following steps for at least 20000 files:
1) open program{EXE-file which has UI}
2) give in an input file's path {like when you click on browse-file button}
3) run the program {like when you click on start-process button}
so I need to automatically be able to done it!
I already done the same for a command-line EXE program as describe in:{ Run cmd commands through java} but when you have a EXE-file-with-UI you can't just repeat a command in CMD an get results :(
thank you in advance :)
This is going to be very complex, but not impossible (assuming windows since you have an exe).
First you will need to read up on the windows API. It has functions to retrieve pointers to controls and activate them (see for example here: how to programmatically click on a button in running app using C# code) although that example is in C#.
Then you will need to use JNI or JNA to use the Windows API in your java application.
Combine the two and you can achieve what you need.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I recently downloaded Java JDK, and installed it on my PC, yet I only received Java Mission Control, which is useless to me. Is there another way of getting programs to create apps in Java with?
Thanks :)
Personally I have used 3 different IDEs them being:
IntelliJ
Netbeans
Eclipse
I personally, as being the first IDE that I used was Eclipse, but Netbeans is taking a great liking on me because of its ability to use multiple different languages in an easy to use interface. Although Eclipse being the greatest in my opinion because of its easy keybindings and a ton of useful plugins. IntelliJ is the least favourite of the 3 because I find it cumbersome, but that is just my opinion.
I would do a quick google search for "Eclipse IDE", it makes the process of developing a program much easier in my opinion. It may seem intimidating at first but just look up a few tutorials and you should be okay.
find for
`
eclips
netbeans
IDE but these IDE are for professionals who are hands on java
after some set of practice's use one of above IDE
if you want to remember and learn the concept of .class files, packages and command line then go with
Notepad
Notepad++
Editplus
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to learn java by myself but I don't know the programming language. I am new to programming but I like to do.
So could you please guide me for learning Java
What software require to install it?
please attach the learning web site link for basics.
please also attach the sample examples links.
Thank You
I would recommend looking at Thinking in Java. It gives you an overview of OO as well which is essential for programming well in Java. I would also look at the tutorials from Oracle.
As to what you might need to actually write java, I'd start with a text editor and manually compile and deploy applications. This gives you a good understanding of it. After that I'd look for an IDE such as Eclipse.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Please tell me, is it possible to extend any PHP based tool in Java programing language.
I am trying some open sourcve tools and found one satisfactory to most of my requirment. But my problem is that, the tool i found is developed in PHP language but i know only java language and there are some business requirment as well. I need to add some more features in this tool. What is the best possioble way to achieve this extension.
Please guide me friends.
Thanks a lot.
You can't wrap or extend PHP code from Java the way you would a Java library, but you might be able to call PHP code on your server and work with the results from your own Java application. See How can I execute a PHP script from Java?
Barring than that, I agree with the comment above. It might be easier to either learn PHP or rewrite the parts of the code that you need in Java.
After seeing in your comments what PHP tool you're talking about, rewriting in Java doesn't seem like much of an option. If you're starting a site from scratch (meaning you don't already have a Java application that you want to add this to) then PHP is not that hard to learn. Other than that, you could look for Java projects that do the same thing as the PHP tool you're looking at now.
Well, it would be useful if you'd tell us what exactly your PHP tool/framework does, maybe even give us a link to it's site, then I'm sure you'll get tons of recommandations for corresponding Java tool/framework that does the same thing. I don't think you need to remake a PHP tool in Java by hand, really I can't think of PHP libraries that don't also exist for Java as well...