Hi everybody! I´ve used jdk to generate my certificate with the following command: keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: import javax.mail.* and import javax.mail.internet.* # and MimeMessage and Multipart. #. However with Apache Commons Email 1.1 creating an email such as the following: HtmlEmail email = new HtmlEmail(); email.setHostName("localhost"); email.addTo("test@mail.com", "Test"); email.setFrom("testapp@mail.com", "Test App"); email.setSubject("Test message"); email.setHtmlMsg("<div style='font-size: 20px; color: green;'>This is html email</div>"); email.attach(new ByteArrayDataSource(pdfBytes, "application/pdf"), "document.pdf", "Document description", EmailAttachment.ATTACHMENT); email.send(); Is it possible to digitally sign this e-mail …

Member Avatar
Member Avatar
+0 forum 1

Hi everybody! I´ve used jdk to generate my certificate with the following command: > keytool -genkey -keyalg RSA -alias certificatekey -keystore keystore.jks -storepass password -validity 360 -keysize 2048 Everything works fine when I want to digitally sign an e-mail using: # import javax.mail.* # and # import javax.mail.internet.* # and # MimeMessage and Multipart. #. However with # Apache Commons Email 1.1 # creating an email such as the following: HtmlEmail email = new HtmlEmail(); email.setHostName("localhost"); email.addTo("test@mail.com", "Test"); email.setFrom("testapp@mail.com", "Test App"); email.setSubject("Test message"); email.setHtmlMsg("<div style='font-size: 20px; color: green;'>This is html email</div>"); email.attach(new ByteArrayDataSource(pdfBytes, "application/pdf"), "document.pdf", "Document description", EmailAttachment.ATTACHMENT); email.send(); Is …

Member Avatar
+0 forum 0

Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Board extends JPanel implements ActionListener { Dude p; public Image img; Timer time; public Board() { p = new Dude(); addKeyListener(new AL()); setFocusable(true); ImageIcon i = new ImageIcon("C:/character.png"); img = i.getImage(); time = new Timer(5, this); time.start(); } public void actionPerformed(ActionEvent e) { p.move(); repaint(); } public void paint(Graphics g) { super.paint(g); Graphics2D g2d = (Graphics2D) g; g2d.drawImage(img, 0, 0, null); g2d.drawImage(p.getImage(), p.getX(), p.getY(), null); } private class …

Member Avatar
Member Avatar
+1 forum 10

Hi, Recently i upgraded my application java version from jdk 1.5 to 1.7. I am using ajaxanywhere as ajax thirdparty jar for ajax work. After upgrading jdk version, jar is not working properly. It is not updating referesh zone after ajax call. url of ajaxanywhere [Click Here](http://ajaxanywhere.sourceforge.net/) Kindly help me to resolve this issue.

Member Avatar
Member Avatar
+0 forum 1

Hello, I am trying to execute a jar file with higher version of jdk. But it fails & the worst part is I am not getting any error message. Jar file compiled verison: jdk 1.5 Executed version: jdk 1.7 I assume the jar file is downward compatible. thoughts pls? Thanks! Om

Member Avatar
Member Avatar
+0 forum 3

I was working on a project on netbeans and came across a problem with netbeans. The netbeans was showing the error repeatedly as "duplicate class". eventhough there is no duplicate class in the project. After so much frustation , i realized that this is netbeans bug. After doing some search about this , i finally got the solution . This is the link to get rid of the netbeans duplicate clas bug. [Netbeans](https://forums.netbeans.org/topic39013.html) Hope this post will help others who encounter the same problem.

Member Avatar
+0 forum 0

HI All, i am doing jdk upgrade version on one application is there any tool whick will convert .class file (which has compiled under jdk 1.4). i don't have .java files(src code) so i want to know is any tool which will convert .class file (jdk 1.4) to .class file (jdk 1.5) with out recompiling the source file into jdk 1.5 (which convert directly .class of jdk 1.4 to .class of jdk 1.5 ) Regards Ravi

Member Avatar
Member Avatar
+0 forum 4

Hi All I wanted to write string.contains() in jdk 1.4, but i know 1.4 doesn't support contains is there any way to do the same ex: if the string contains "," i want check the condition String name; if(name.contains(",")) is there any way to do in jdk 1.4 Regards Ravi

Member Avatar
Member Avatar
+0 forum 4

To make it short and sweet, here it is. Looking to do a simple screenshot on the client-side (and if anyone would be so kind, point me in the direction to create an automated upload of the screen to a server. ++ if you can provide a tip on doing this at an interval).. import java.awt.AWTException; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ScreenShot { /** method to capture screen shot @param String uploadPath to save screen shot as image @returns boolean true if capture successful else false */ boolean captureScreenShot(String …

Member Avatar
Member Avatar
+0 forum 14

Hi there, Last night I switched to Ubuntu 10.04 (no, not 10.10, long story). And I wanted to get started programming as soon as possible, so I'm trying to find out how to install Eclipse Helios and the Java JDK 1.6 on my machine? Please note that [B]my machine is NOT connected to the internet[/B] so I can't simply go to the 'software centre'. Instead I went to Eclipse's site and downloaded Helios for Linux 32bit systems. I also went to Oracle and downloaded the Java 1.6 JDK for Linux. So now I have 2 folders/files: - java_ee_sdk-6u2-jdk-linux.sh - eclipse-java-helios-SR2-linux-gtk.tar …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I have recently begun learning java at uni and have encountered, what appears to be, a somewhat unusual problem. Every time I install JDK6 and BlueJ onto my home computer (running win7x64) I suddenly lose the ability to copy files. At first I thought it was just a virus or some such thing as I could not copy anything for a couple of days, I restored my computer back 2 weeks using my weekly back up, I then re-installed JDK6 and blueJ (They where the only 2 things which I needed to install and had changed in the …

Member Avatar
Member Avatar
+0 forum 2

Hi, I've started developing for Androind [ditched Symbian but that's a whole diferent styory], and I'm not what you'd call a naturall Java developer [much prefer c++]. Eclipse seems to run rediculously slowly on windows 7 (64bit), and running a dual boot system with Linux [on which it seems to run a lot faster] is out of the qustion as it destabalises my machine. I don't have the cash to invest in a dedicated Linux machine at the moment so that's out of the question, and I need windows for music production. My question is does this have anything to …

Member Avatar
Member Avatar
+0 forum 17

Hi there, I understand that this question might be better off in "hardwareAndSoftware/LinuxAndUnix/LinuxApplicationsAndSoftware". But the truth is, that it takes for ever for someone to respond to posts there, because I don't think anybody visits that forum alot. Anyways, back to the point... I'm trying to install the Java 1.6 JDK. I downloaded it at: [url]http://www.oracle.com/technetwork/java/javase/downloads/index.html[/url] I chose the Linux 32bit version. (Attached is an image of exactly what I chose).. When I tried running the .sh file in the Terminal, I got this error: "Could not locate suitable jar utility. Please ensure you have java 6 or newer installed …

Member Avatar
Member Avatar
+0 forum 6

I noticed my JDK is 6u21(1.6.0_21) and the newest is 6u24(1.6.0_24) is there any way for me to update without re downloading, is there and reason to either?

Member Avatar
Member Avatar
+0 forum 2

The End.