JavaMail error with "java -jar" on 1.6

The following code sends an email. The following ant build script compiles the code, creates a jar, runs the program using "java Test", and runs the program using "java -jar test.jar". Both runs work with Sun's 1.5 JRE. With Sun's 1.6 JRE, it does not work when using "java -jar" (my output is following the code). I am not sure why. I thought it might be conflicting versions of JavaMail and the JAF in Java6, but I have the latest JavaMail. I guess it is an issue with how libraries are loaded when using "java -jar", but I am not sure how to resolve this.
If you want to run this, simply drop mail-1.4.1.jar and activation-1.1.1.jar into the same directory as these two files, set your.mail.server.here and [email protected], and run ant.
Test.java
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class Test {
    public static void main( String[] args )
        throws Exception {
        String host = "your.mail.server.here";
        String from = "[email protected]";
        String to = from;
        String subject = "Test JavaMail";
        Address[] toRecipients = new Address[1];
        toRecipients[0] = new InternetAddress( to );
        Properties properties = System.getProperties();
        properties.put( "mail.smtp.host" , host );
        Session session = Session.getDefaultInstance( properties, null );
        MimeMessage message = new MimeMessage( session );
        Address fromAddress = new InternetAddress( from );
        message.setFrom( fromAddress );
        message.setRecipients( Message.RecipientType.TO, toRecipients );
        message.setSubject( subject );
        message.setText( "this is the body" );
        Transport.send( message );
build.xml
<project name="test" basedir="." default="all">
    <property name="jar.path" value="test.jar" />
    <path id="classpath">
        <pathelement location="mail-1.4.1.jar" />
        <pathelement location="activation-1.1.1.jar" />
    </path>
    <target name="clean">
        <delete>
            <fileset dir=".">
                <include name="${jar.path}" />
                <include name="Test.class" />
            </fileset>
        </delete>
    </target>
    <target name="build">
        <javac destdir="." srcdir=".">
            <classpath refid="classpath" />
            <include name="Test.java" />
        </javac>
    </target>
    <target name="jar">
        <manifestclasspath property="mf.classpath" jarfile="${jar.path}">
            <classpath refid="classpath" />
        </manifestclasspath>
        <jar destfile="${jar.path}" basedir="." update="no" index="true">
            <include name="Test.class" />
            <manifest>
                <attribute name="Manifest-Version" value="1" />
                <attribute name="Class-Path" value="${mf.classpath}" />
                <attribute name="Main-Class" value="Test" />
            </manifest>
            <indexjars>
                <path refid="classpath" />
            </indexjars>
        </jar>
    </target>
    <target name="run">
        <echo message="This will work in 1.5 and 1.6" />
        <java classname="Test">
            <classpath refid="classpath" />
            <classpath location="${jar.path}" />
        </java>
    </target>
    <target name="runjar">
        <echo message="This will not work in 1.6" />
        <java jar="${jar.path}" fork="true" />
    </target>
    <target name="all" depends="clean,build,jar,run,runjar" />
</project>
output (with 1.6)
     [java] Exception in thread "main" javax.mail.MessagingException: IOException while sending message;
     [java]   nested exception is:
     [java]     javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
     [java]     at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676)
     [java]     at javax.mail.Transport.send0(Transport.java:189)
     [java]     at javax.mail.Transport.send(Transport.java:118)
     [java]     at Test.main(Unknown Source)
     [java] Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=us-ascii
     [java]     at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:870)
     [java]     at javax.activation.DataHandler.writeTo(DataHandler.java:301)
     [java]     at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403)
     [java]     at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745)
     [java]     at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636)
     [java]     ... 3 more

I spent quite a bit of time looking into this. Thanks for the reproducible test
case, it was essential to figuring out the problem!
The problem appears to be a bug in the jar file index. The jar file index doesn't
include the META-INF directory, which means JavaMail can't find the config
files it's looking for in mail.jar. If you change the ant build file to set index="false",
it will work as expected. If you really need the index, you can fix it by using
the jar command explicitly - "jar i test.jar".
It looks like this is a bug in ant.

Similar Messages

  • .jar file only works with 'java -jar'

    I have a .jar file that contains an installer. When I double click it nothing happens on my work computer (vista32). I have tried moving it to my home computer (vista64 and winXP) there it works fine when I double-click it.
    I have found a temporary solution for the work/vista32 machine. If I run it with:
    java -jar installer.jar
    it works. I have put this in the target of a shortcut to the file. But why do I need to do that manually when it works fine on my other machine by just double clicking the file?

    fedevaps wrote:
    Thing is that if I move this jar to another machine it works fine! The thing is that you are missing the point.
    It has nothing to do with the jar. Nor really java.
    Double clicking works because the OS (windows not java) understands what to do when you double click.
    If the OS (windows not java and definitely not the jar) does not understand then it doesn't work.
    So there are two independent parts.
    1. Create an executable jar.
    2. Create the correct association in windows.
    If you use the command line then you can absolutely verify that the first works. If it works then it means, absolutely (no other possibility) that if double clicking fails then the association, not the jar, is wrong.
    If it doesn't work then it means absolutely (no other possibility) that the jar, not the association, is wrong.

  • Running with java -jar

    I have a client.jar that has a bunch of vm parameters and relies on a few other jars. The jar has the main class specified in the manifest. Ultimately I would like to take the dependent jars and put them in the client jar and use the manifest classpath option. I have been unable to get this to work. What I am finding is that running with java -jar basically ignores all of my vm parameters. I have tried removing the dependent jars and referencing them from the command line classpath argument. This still did not work. The only thing that has worked is not using a client.jar at all and just running my main class with all the vm parameters. This is not an acceptable solution for me. Thoughts?
    Thanks,
    Howard

    Yes, this is what is so weird about the problem. Neither the manifest class-path option or running with cp is working when the main class lives in a jar.

  • [ SOLVED ] Compile Error with Java Fonts & IntelliJ

    Hi All
    I have now got a new problem when i compile a flex project.  Yesterday inorder to get the IJ Interface font smoothing sorted, i had to add this line to my ~/.bashrc file
    _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    But now when i go to run a flex project, i get the following error message
    Information:Using built-in compiler shell, up to 4 parallel threads
    See compiler settings at File | Settings | Compiler | Flex Compiler page
    Information:Starting Flex compiler:
    /opt/java/jre/bin/java -Dapplication.home=/home/julian/SDK/flex_sdk_4.5.0.17855 -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=en -Xmx1024m -classpath /opt/idea-IU-98.311/plugins/flex/lib/flex-compiler.jar:/home/julian/SDK/flex_sdk_4.5.0.17855/lib/flex-compiler-oem.jar com.intellij.flex.compiler.FlexCompiler 48936
    Information:Compilation completed with 2 errors and 0 warnings
    Information:2 errors
    Information:0 warnings
    Error:Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
    Error:java.net.SocketException: Socket closed
    Error:java.net.ConnectException: Connection refused
    Error:     at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:218)
         at com.intellij.flex.compiler.FlexCompiler.openSocket(FlexCompiler.java:35)
         at com.intellij.flex.compiler.FlexCompiler.main(FlexCompiler.java:70)
    Any suggestions, besides disabling the _JAVA_OPTION again ?
    Many Thanks
    Last edited by whitetimer (2010-11-14 17:24:11)

    -Dawt.useSystemAAFontSettings=on needs to be added to the end of file
    idea.vmoptions

  • [SOLVED] Netbens Error with java openjdk7

    hi! i have a error with netbeans:
    [pablo@arch ~]$ netbeans
    # A fatal error has been detected by the Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x802067a9, pid=11781, tid=2165295936
    # JRE version: 7.0_21-b02
    # Java VM: OpenJDK Client VM (23.7-b01 mixed mode linux-x86 )
    # Problematic frame:
    # C [libGL.so.1+0x707a9] glXChooseVisual+0xaf69
    # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
    # An error report file with more information is saved as:
    # /home/pablo/hs_err_pid11781.log
    # If you would like to submit a bug report, please include
    # instructions on how to reproduce the bug and visit:
    # http://icedtea.classpath.org/bugzilla
    /usr/share/netbeans/platform/lib/nbexec: línea 572: 11781 Abortado (`core' generado) "/usr/lib/jvm/java-7-openjdk/bin/java" -Djdk.home="/usr/lib/jvm/java-7-openjdk" -classpath "/usr/share/netbeans/platform/lib/boot.jar:/usr/share/netbeans/platform/lib/org-openide-modules.jar:/usr/share/netbeans/platform/lib/org-openide-util.jar:/usr/share/netbeans/platform/lib/org-openide-util-lookup.jar:/usr/share/netbeans/platform/lib/locale/boot_ja.jar:/usr/share/netbeans/platform/lib/locale/boot_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/boot_ru.jar:/usr/share/netbeans/platform/lib/locale/boot_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-modules_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ja.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_pt_BR.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_ru.jar:/usr/share/netbeans/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/lib/jvm/java-7-openjdk/lib/dt.jar:/usr/lib/jvm/java-7-openjdk/lib/tools.jar" -Dnetbeans.default_userdir_root="/home/pablo/.netbeans" -Dnetbeans.system_http_proxy="DIRECT" -Dnetbeans.system_http_non_proxy_hosts="" -Dnetbeans.dirs="/usr/share/netbeans/nb:/usr/share/netbeans/ergonomics:/usr/share/netbeans/ide:/usr/share/netbeans/java:/usr/share/netbeans/apisupport:/usr/share/netbeans/webcommon:/usr/share/netbeans/websvccommon:/usr/share/netbeans/enterprise:/usr/share/netbeans/mobility:/usr/share/netbeans/profiler:/usr/share/netbeans/python:/usr/share/netbeans/php:/usr/share/netbeans/identity:/usr/share/netbeans/harness:/usr/share/netbeans/cnd:/usr/share/netbeans/dlight:/usr/share/netbeans/groovy:/usr/share/netbeans/extra:/usr/share/netbeans/javacard:/usr/share/netbeans/javafx:" -Dnetbeans.home="/usr/share/netbeans/platform" '-Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade' '-Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense' '-XX:MaxPermSize=384m' '-Xmx403m' '-client' '-Xss2m' '-Xms32m' '-XX:PermSize=32m' '-Dapple.laf.useScreenMenuBar=true' '-Dapple.awt.graphics.UseQuartz=true' '-Dsun.java2d.noddraw=true' '-Dsun.java2d.dpiaware=true' '-Dsun.zip.disableMemoryMapping=true' '-Dsun.awt.disableMixing=true' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="/home/pablo/.netbeans/7.3/var/log/heapdump.hprof" org.netbeans.Main --userdir "/home/pablo/.netbeans/7.3" "--cachedir" "/home/pablo/.cache/netbeans/7.3" "--branding" "nb" 0<&0
    i am with netbeans 7.3-1  in 32bits , i try the "ulimit -c ulimited"  command and nothing happens and java version
    OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u21_2.3.9-4-i686)
    OpenJDK Client VM (build 23.7-b01, mixed mode)
    java runs fine with other programs like Eclipse
    thank's, sorry my bad english
    Last edited by senjik (2013-06-15 20:25:29)

    Restored thread from dustbin.  It is not clear to me how it got there
    Senjik, Sorry for the inconvenience.  See my suggestions in my PM.
    ewaller

  • Error with NetBeans JAR file

    I wrote a program using the NetBeans IDE, the program runs fine with no errors with tested in the actual environment. However when I build the project and create a JAR file I am unable to run it. Double-clicking the file brings up this error:
    Java Virtual Machine Launcher
    Could not find the main class. Program will now exist.
    Also opening the same file using JAVA 2 Platform Standard Edition binary causes no errors.
    If it helps, here is the manifest file contained with the JAR.
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.6.2
    Created-By: 1.5.0_02-b09 (Sun Microsystems Inc.)
    Main-Class: ecosystem.GameManager
    X-COMMENT: Main-Class will be added automatically by build

    It should run if you issue the command
    java -classpath <absolutePathToJar\jarName>.jar ecosystem.GameMaster
    When you run using the java -jar command or by cl8icking on the jar in Windows, the only source for classpath information is from within the jar. You need to add the Class-Path: attribute to the manifest file.

  • PeopleSoft XML Publisher report error with java.io.FileNotFoundException

    Hi,
    I have created two reports using XML Publisher in Peoplesoft Financials. The two reports are not related and they were submitted for processing separately. The first report completes without any issues. The second report results in error with the following message:
    09.11.17 ..(CIS_POTRPT.XML_FILE.Step03) (PeopleCode)
    [012309_091118154][oracle.apps.xdo.template.FOProcessor][EXCEPTION] IOException is occurred in FOProcessor.setData(String) with 'files/cis_potrpt.xml'.
    [012309_091118500][oracle.apps.xdo.template.FOProcessor][EXCEPTION] java.io.FileNotFoundException: files/cis_potrpt.xml (A file or directory in the path name does not exist.)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java(Compiled Code))
         at java.io.FileInputStream.<init>(FileInputStream.java:89)
         at oracle.apps.xdo.template.FOProcessor.getInputStream(FOProcessor.java:1316)
         at oracle.apps.xdo.template.FOProcessor.getXMLInput(FOProcessor.java:1100)
         at oracle.apps.xdo.template.FOProcessor.setData(FOProcessor.java:372)
         at com.peoplesoft.pt.xmlpublisher.PTFOProcessor.generateOutput(PTFOProcessor.java:53)
    2009-01-23-09.11.18.000418 AePcdExecutePeopleCode [174] Exception logged: RC=100.
    Error generating report output: (235,2309) PSXP_RPTDEFNMANAGER.ReportDefn.OnExecute Name:ProcessReport PCPC:51552 Statement:1153
    Called from:CIS_POTRPT.XML_FILE.GBL.default.1900-01-01.Step03.OnExecute Statement:8
    2009-01-23-09.11.18.000617 DoStepActions [1797] Exception logged: RC=100.
    Process 598607 ABENDED at Step CIS_POTRPT.XML_FILE.Step03 (PeopleCode) -- RC = 24 (108,524)
    In the process monitor detail > view log/trace page, the xml file is accessible so the file was generated to a valid directory.
    The weird thing is I was able to run this report without any issues few weeks ago although another user also ran into same error. The PeopleCode step that has been identified is essentially same in the two reports. I checked the app server and the directory does exist as well as the xml files for the two reports. The problem does not occur in test environment, just in production. Any help would be appreciated.

    We encounter the same problem. Did you get the answer for this issue? Thanks in advance.

  • Error with Java Virtual Machine Laucher

    Hi, I'm getting the follwowing error with I try to lauch universal installer.
    Fatal exception occured. Program will exit.
    Does anyone have any idea what's going on? I have java ee 5 sdk installed on my machine.

    Hello Guys!
    I have a problem here and i cant find the solution!
    somebody can help me?
    In the installation, after run the runInstaller show
    this message:
    Initializing Java Virtual Machine from
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/bin/java
    . Please wait...
    [oracle@localhost ~]$ Oracle Universal Installer,
    Version 10.2.0.1.0 Production
    Copyright (C) 1999, 2005, Oracle. All rights
    reserved.
    Exception java.lang.UnsatisfieldLinkError:
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/lib/i386
    /libawt.so: libXp.so.6: cannot open shared object
    file: No such file or directory occurred..
    java.lang.UnsatisfieldLinkError:
    /tmp/OraInstall2008-04-27_0733-08PM/jre/1.4.2/lib/i386
    /libawt.so: libXp.so.6: cannot open shared object
    file: No such file or directory<snip>
    So I went to MetaLink and did a search on the "libXp.so.6: cannot open shared object" found in your error message. The very first hit returned was note 308755.1, titled "OUI Reports The Error: Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall*/jre/1.4.2/lib/i386/libawt.so: libXp.So.6: Cannot Open Shared Object File"
    The terms of MetaLink usage prevent me from quoting from the note, but you would be advised to go read it for yourself. Suffice it to say you are missing some rpms. The specific ones missing are not listed in the above referenced not, but it will point you in the right direction.

  • Help with Java JAR file opbfuscation.

    I am looking for a free (no $) for use on commercial java code
    code obfuscation program, which can beat the Jode decompiler.
    I have tried Proguard, and I have tried Joga
    (using Jode itself for obfuscation is too complex for my purposes).
    Is there a simple way to beat decompilers like Jode and DJ,
    without a financial outlay if possible,
    given how easy it is to decompile Java bytecode?

    All interesting remarks, everyone!
    Proguard doesn't prevent decompilation on something very small, like a jar
    with one or two classes.
    Proguard is free(no money) for use over commercial java code,
    and is itself a java jar, so it will run on Windows,
    Mac and Linux platorfms.
    It also correctly obfuscates and links external java libraries
    and references to the man jar/class in a very systematic way.
    I'm just wondering if there is something similar to proguard on licensing arrangements,
    working over small amounts of code, and beating
    the decompilers (like Jode).
    I have used the code obfuscation that Dr.Java performs on it's classes during compilation.
    And while the resulting class file tested does confound Jode,
    JD-Gui ("Java decompiler") instantly beats the results of Dr.Java.
    Considering how easy it is to break class files, I was figuring that either Sun
    or another would offer a free/open source/cheap way to secure these class files,
    without resulting to Zelix Klassmaster, and instead of leaving a mess
    of decompiled source code, prevent decompilation of java byte
    code even happening at all?
    Any ideas?
    Edited by: Zac1234 on Jul 5, 2009 10:55 PM

  • Install NW04S PI - Error with Java 710 CD

    I am trying to install the UNIX/Oracle version SAP Netweaver Process Integration 7.1 using the follow installation media
    51033243_2               NW 7.1 UC-Kernel 7.10 HP-UX on IA64 64bit
    51033237                     SAP NW AS ABAP 7.1 Inst. Export     
    51033240_3.               NW 7.1 Inst.Master HPUX on IA64 64bit ORACLE           
    51033242_1              SAP NW PI 7.1 Java based SW Comp.s 1 of 4           
    51033242_2              SAP NW PI 7.1 Java based SW Comp.s 2 of 4             
    51033242_3              SAP NW PI 7.1 Java based SW Comp.s 3 of 4          
    51033242_4              SAP NW PI 7.1 Java based SW Comp.s 4 of 4
    After I run sapinst from the Installation master CD I am prompted to enter the location of the media.
    For the media JAVA COMPONENT NW71 (JAVA_J2EE_OSINDEP) 
    I am using the unpacked disk 51033242_1 (through4) SAP NW PI 7.1 Java based SW Comp  
    I bounces back the following error.
    Found the label SAP:NETWEAVER:710:DVD_JAVA:SAP Netweaver 7.10 PI Java DVD:D51033242 but need the label SAP:J2EE-CD:710:J2EE-CD:j2ee-cd
    What installation media should I be using in order to install this with JAVA 710 components for PI?
    Thanks.

    Thanks...
    Ive tried that CD as well. but it has the wrong label.
    Is there a way to preview LABEL.ASC without downloading the whole file
    $ cd 51032257
    $ ls
    CDLABEL.ASC   COPY_TM.TXT   JAVA_EXPORT   LABELIDX.ASC  VERSION.ASC
    CDLABEL.EBC   CRCFILE.DAT   LABEL.ASC     PROD_LABEL    VERSION.EBC
    COPY_TM.HTM   J2EE_OSINDEP  LABEL.EBC     SHAFILE.DAT
    $ cd J2EE_OSINDEP/
    $ ls
    CDVersion.txt         KernelVersions.xml    UT
    ComponentCatalog.xml  LABEL.ASC             UT_SOLMAN
    J2EE-INST             LABELIDX.ASC          vmparams.xml
    JDKVersion.xml        TOC.XML
    $ more LABEL.ASC
    SAP:J2EE-CD:700SR2:J2EE-CD:j2ee-cd:*

  • JDev 11 on linux with java -jar jdevstudio11110install.jar not working

    My environment was working great until a few days ago, then kaboom. Now I'm trying to pick up the pieces and can't seem to be able to install JDeveloper. I am using Fedora 10.
    Logged in as myself, the default version of java is 1.6.0_13.
    $ java -jar jdevstudio11110install.jarI get the install screen. I can't press the next button. It just won't work. I then CTRL-C to get back to the terminal, and with this version of Java, I have to kill -9 the PID found using the command
    ps -efIf I perform the same steps as root, I can install JDeveloper, but then I can only run it as root. When launching jdev as myself, I get a blank "Select Role" screen.
    Thanks, Ken

    Olaf,
    I uninstalled 1.6.0_13, and installed 1.6.0_12, and still have the problem of not being able to press the next button. Here is the text from my terminal window. After not being able to click the next button, I switched windows and when I switched back, the Oracle window was empty of content. I pressed CTRL-C to close the window.
    I checked, and I don't have selinux running. Below is from my yum.log that shows updates for the last few days. I don't know if any of these caused the problem, but I really am not sure. I'm getting to the point of needing to run jdeveloper in windows in a virtual machine...
    [klee@c5ybv91 Download]$ java -Djava.io.temp=/home/klee/temp -jar jdevstudio11110install.jar
    Extracting 0%....................................................................................................100%
    ^C[klee@c5ybv91 Download]$
    [klee@c5ybv91 Download]$ java -version
    java version "1.6.0_12"
    Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
    Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)
    [klee@c5ybv91 Download]$ Here is the contents of my yum.log for the last few days.
    Mar 23 07:46:54 Updated: thunderbird-2.0.0.21-1.fc10.i386
    Mar 23 07:46:56 Updated: liveusb-creator-3.6.3-1.fc10.noarch
    Mar 23 07:47:14 Updated: ghostscript-8.63-5.fc10.i386
    Mar 24 09:13:12 Updated: selinux-policy-3.5.13-49.fc10.noarch
    Mar 24 09:13:51 Updated: selinux-policy-targeted-3.5.13-49.fc10.noarch
    Mar 24 09:13:54 Updated: libX11-1.1.5-1.fc10.i386
    Mar 24 09:13:57 Updated: ffmpeg-libs-0.4.9-0.55.20080908.fc10.i386
    Mar 24 09:14:04 Updated: gtk2-2.14.7-7.fc10.i386
    Mar 24 09:14:20 Updated: 1:java-1.6.0-openjdk-1.6.0.0-11.b14.fc10.i386
    Mar 24 09:14:21 Updated: lcms-libs-1.18-1.fc10.i386
    Mar 24 09:14:22 Updated: postgresql-libs-8.3.7-1.fc10.i386
    Mar 24 09:14:22 Updated: lcms-1.18-1.fc10.i386
    Mar 24 09:14:25 Updated: 1:java-1.6.0-openjdk-devel-1.6.0.0-11.b14.fc10.i386
    Mar 24 09:14:25 Updated: 1:java-1.6.0-openjdk-plugin-1.6.0.0-11.b14.fc10.i386
    Mar 24 09:14:26 Updated: ffmpeg-0.4.9-0.55.20080908.fc10.i386
    Mar 24 09:14:26 Updated: xorg-x11-drv-vesa-2.2.0-3.fc10.i386
    Mar 24 09:14:31 Updated: libX11-devel-1.1.5-1.fc10.i386
    Mar 24 09:14:40 Updated: gtk2-devel-2.14.7-7.fc10.i386
    Mar 24 09:14:40 Updated: ffmpeg-devel-0.4.9-0.55.20080908.fc10.i386
    Mar 24 09:17:01 Installed: kmod-wl-2.6.27.19-170.2.35.fc10.i686-5.10.79.10-1.fc10.i686
    Mar 24 09:17:01 Installed: kmod-wl-5.10.79.10-1.fc10.i686
    Mar 24 09:17:01 Installed: broadcom-wl-5.10.79.10-1.fc10.noarch
    Mar 25 10:29:22 Installed: 1:java-1.6.0-openjdk-1.6.0.0-11.b14.fc10.i386
    Mar 25 10:29:22 Installed: 1:java-1.6.0-openjdk-plugin-1.6.0.0-11.b14.fc10.i386Before the 23rd, I didn't have any updates for about a week, and everything was working fine.
    Thanks,
    Ken

  • Timestamp/Date format error with Java 1.6

    I'm getting this error trying to getObjects from a ResultSet query for an Oracle Lite 10G table that has colums of the TIMESTAMP or DATE type. This works fine under java 1.5. Java 1.6 seems to have broken TIMESTAMP/DATE compatibility with Oracle Lite. Are there any plans to make 10G compatible with Java 1.6? We would like to port our application from Java 1.5 to 1.6, but this is an obstacle. I suppose one work-around would be to use TO_CHAR on all the DATE fields and convert them back to java Dates programatically, but that would be a hassle.
    Update: I changed the column types of the table from TIMESTAMP to DATE. The same exception occurs when calling POLJDBCResultSet.getObject() on the DATE columns. Again, this works fine under Java 1.5, but not 1.6.
    java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss[.fffffffff]
         at java.sql.Timestamp.valueOf(Timestamp.java:194)
         at oracle.lite.poljdbc.LiteEmbResultSet.jniGetDataTimestamp(Native Method)
         at oracle.lite.poljdbc.LiteEmbResultSet.getVal(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getTimestamp(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getObject(Unknown Source)

    I just found a pretty easy java work-around for this that doesn't involve changing the table column types or the SQL:
    Check the column type from the ResultSetMetaData before calling ResultSet.getObject(). If the type is DATE, TIMESTAMP or TIME, call ResultSet.getString() which doesn't throw an exception. Then convert the string to a java.util.Date using java.text.SimpleDateFormat. That can then be used to instantiate a Timestamp.
    This seems to work.
    Message was edited by:
    user490596

  • Is ist possible to define heap size when start with java -jar

    Hi,
    I start my application as executable jar. How can I set the heapsize when double clicking myapp.jar ? With java -Xmx512m -jar myapp.jar it should go. But can I specify this when double clicking the myapp.jar ?
    Thanks
    Oli

    For all jars it is not acceptable I think.... the value as entry in the manifest.mf could be nice... :(

  • Launching classes with java -jar option

    hi all,
    i have read how to launch a class using the -jar option.
    Now i have one additional question.
    Suppose that the class that i want to launch contains packages from other jar files.
    Can i pack all the other jar files in the same jar, and have the code run by simply calling
    java -jar MyClass?
    if different jar packages are in the same jar file, can the main class that i want to launch see them?? or do i still
    have to specify the -cp option??
    thanx in advance and regars
    marco

    I don't know about having jar files in a jar file, but if you have class files in a jar file, you can make it so you just have to run it as
    java -jar MyJar.jar
    To make the jar file, you need to add an attribute to the manifest file. Make a text file and call it whatever you want, e.g. manifest.mf or manifest.txt.
    Add this line to it:
    Main-Class: MyMain
    if MyMain is your class with the main method. If MyMain is in a package, then you need to add that too, e.g. mypackage.MyMain.
    Now create your jar file as
    jar cfm MyJar.jar manifest.mf *.class
    After manifest.mf you add all the classes you have with spaces to separate them, or use wildcards.

  • Use Mac OS X version 10.7.5, I am keep getting this error "The Java JAR file "plexus-interpolation-1.4.jar" could not be launched.  Please advise

    I think this may have to do with Maven 3.0.4 being incompatible with Java 1.6.  But I don't know for sure.  Please help!

    Look in The Utilities folder inside the Applications folder for:
    Java Preferences.app
    Launch that and it will tell you the state of your Java. If you do not have Java Installed, it will offer to get it for you.

Maybe you are looking for

  • BPM with 2 receive steps

    Hi folks, I want to create a BPM which can be used for 2 different IDOCS - they are both being mapped towards the same XML flavour and then send out ... I created a "ForEach" step with 2 branches , put necessary branches to "1" and defined a receive

  • Fireworks CS4 won't quit... Ever

    I just got CS4 and the only problem I'm running into so far is that FW CS4 won't quit. Anyone have any ideas: [0x0-0x66066].com.macromedia.fireworks[658]: Adobe Fireworks CS4(658,0xa04cf720) malloc: *** error for object 0xffffffff: Non-aligned pointe

  • DJ with MBA

    I'm still doubting for a few months between the MBA with 256gb and the MBP 13" with 750gb. The most important question i have is if it is possible to run perfectly dj-software like "Traktor", "Virtual dj" or other coming interesting software on the M

  • Do I still need Cineform?  Final answer...

    I just upgraded to CS5 and love the fact that I can edit my native dSLR footage.  My question is...do I still need Cineform?  Am I really going to see a difference between my footage if I'm only doing light grading and editing?

  • Exporting photos from ovi

    transferred load of photos from my n8 to ovi then deleted them, fine! But how do i export them to photo editing software for sorting and using. must be missing something simple! Thanks.....Glitz Solved! Go to Solution.