Sir, I am quiet clear about java's real word applications and uses.But I have a doubt that is there any possibility of creating ".exe" files for windows.I have searched Google and it says, indirectly no by showing some commercial products for creating the executable.
Is there way to export my java code to exe which can be used to run in the computers which has no java environment
If there is no way kindly suggest me the commercial exe converter which is trustworthy.
Kindly help me with this.
First of all, i apologise for my English, but i'm Greek ... you know....
Today i start reading about java. i'm not a programmer and i don't know if this comunity can help in this case or if is for only programmers.
I think that Books, pdf's and youtube tutorials are useless for someone who want to learn programming.
So i started with Netbeans - UI, a simple window with 2 buttons.
One button must shut down the pc.
The other button in an "about" button. I want to press it and to have a window with a message that describes my first attempt to make a simple java application.
So, i designed the window, i program the first button to shut down my pc with this code i found on the internet :
and now i want to create the "about" pop up message for the second button.
After that, i want to install and run this app on my pc AND I CAN'T UNDERSTAND HOW CAN I DO THIS.
Can you guys help me??
(i'm sorry if i'm off topic, but i really want to learn programming and i found the codeacademy - books - youtube tutorials ecc so useless. I want to learn this language creating real things in real windows with UI and run those things on my pc. I hate the "hello World" examples.)
I am new to Java.. I will be getting image Byte array via CORBA.. In the Java Applet I should get the image data and write on to disk in Jpg format. I am trying with below code. but ImageIO.read() fails, no clue why? Could you please advise
I AccessController.doPrivileged(new PrivilegedAction() to make to that I has write access and tested writing text file, file is getting created.
But the issue was image is not getting created from byte array
I just want to create image of any format from m_imgData and save it to disk. Thanks in advance !!
InputStream bteArrayInputStream = new ByteArrayInputStream(m_imgData);
final BufferedImage bufferedImage = ImageIO.read(bteArrayInputStream);
ImageIO.write(bufferedImage, "jpg", new File("c:\\temp\\myImg.jpg"));
I have an existing Spring MVC maven project. Everything in the current project is exactly what I need as a template for a new Spring project. Is there any way I can use the existing project as a template and rename it to a new project without changing anything but the name. I tried to recreate the existing project from scratch and just add the same existing components but am running into a lot of problems with the dependencies and other jar files as well as configurations.
I need to add multiple controllers to my Spring MVC project which only has one right now. My current project only has one SpringDispatcher in the web.xml and it maps the <url-pattern>/</url-pattern> to the '/' of the controller's @RequestMapping(value = "/") controller request mapping. Because everything is in the web.xml and there are no other xml files that do any dispatcher mapping, should I not be able to just add a new <url-pattern>/</url-pattern> with a different controller pattern to the web.xml? Below are the web.xml and the one working controller.