Unable to handle the java String

Hi,
I am unable to handle string object(character array) using the negative byte values.
for eg: if i am forming a String Object using byte array which is having negative values(like -127,-118) i am not getting correct ascii value instead i am getting '?' .
Put some light on this.
Thanx in advance.

"-127" -> as an unsigned byte: 129 -> ASCII only
ranges up to 128Add 256 to your negative byte values. It will give correct characters for ur generated string.

Similar Messages

  • Unable to compile the java class in the SQL PLUS

    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;

    860411 wrote:
    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    I believe the error message is clear and self-explanatory.
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;
    The last two lines above should be
    /Srini

  • LLVM ERROR: Error: Unable to launch the Java Virtual Machine

    Having expanded the kit and followed directions to compile the samples
    On Windows 7, the complaint is
         LLVM ERROR: Error: Unable to launch the Java Virtual Machine.
    I have about a dozen JVMs installed, the default is 64 bit java 1.8_05
    make FLASCC="/cygdrive/c/crossbridge/sdk" FLEX="C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0"
    make[2]: Entering directory `/cygdrive/c/crossbridge/samples/01_HelloWorld'
    -------- Sample 1 --------
    First let's compile it as a projector:
    "/cygdrive/c/crossbridge/sdk/usr/bin/gcc" -Werror -Wno-write-strings -Wno-trigraphs hello.c -o hello.exe
    cc1: error in backend: Failed to run /cygdrive/c/crossbridge/sdk/usr/bin/../../usr/bin/llc with args: -jvm=C:\windows\sy
    stem32\java -filetype=obj C:\crossbridge\cygwin\tmp\ccb4oprU.o -o C:\crossbridge\cygwin\tmp\ccb4oprU.o -jvmopt -Xmx1500M
    Error:
    LLVM ERROR: Error: Unable to launch the Java Virtual Machine.
    This usually means you have a 32bit JVM installed or have set your Java heap size too large.
    Try lowering the Java heap size by passing "-jvmopt=-Xmx1G" to gcc/g++.
    Stack dump:
    0.      Program arguments: C:\crossbridge\sdk\usr\bin\llc.exe -jvm=C:\windows\system32\java -filetype=obj C:\crossbridge
    \cygwin\tmp\ccb4oprU.o -o C:\crossbridge\cygwin\tmp\ccb4oprU.o -jvmopt -Xmx1500M
    1.      Running pass 'Function Pass Manager' on module 'C:\crossbridge\cygwin\tmp\ccb4oprU.o'.

    After the above, the "samples" build still failed on sample 5.
    My explanation is that my typical devlopers path is full of all kinds of stuff, including perl,
    msvc, some version or other of cygwin, some random unix command tools, and so on.
    I eventually fixed the rest of the samples build process by cleaning up my path.
    In run.bat, before the path modification
    # set a minimal path to avoid contamination of the environment with unexpected programs
    # note this includes the JDK path we want to use
    set path=C:\java\jdk1.8.0\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;

  • I have just switched over to iCloud and I am now getting an error message in iCal which is the following: The server is currently unable to handle the connection due to a temporary overloading or maintenance of the server. If this continues you should con

    I have recently switched from MobileMe to iCloud and I now getting an error message in iCal :
    "The server is currently unable to handle the connection due to a temporary overloading or maintenance of the server. If this continues you should contact the server administrator.
    You may try to connect to the server again or take the account offline."
    Since I am working from home and I am not on a server other than iCloud I don't understand why I am getting this message. (for 3 days). How do I fix it?

    TomCT60,
    Is your MacBook using Mac OS X 10.6.8 as indicated in your post? If so you will not be able to fully integrate with iCloud.
    iCloud and Snow Leopard, by Roger Wilmut describes what iCloud options are available for Snow Leopard.
    If you are using Lion, go to iCal>Preferences...>Accounts, and delete/re-add your iCloud CalDAV server.

  • Java Mapping Error - Unable to instantiate the Java class

    Hi,
    I am trying out a Java Mapping scenario.
    The code worked fine in eclipse.i could get the desired output.
    but when i tried it out in XI ....i got the following error in moni:
    *Unable to instantiate the Java class*
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">CANNOT_INSTANCIATE_CLASS</SAP:Code>
      <SAP:P1>JavaMapping</SAP:P1>
      <SAP:P2>http://www.sdsdsd.com/XI/Sales/T~</SAP:P2>
      <SAP:P3>3bd13b30-6300-11dc-b9f1-f0050aa5c91a</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Unable to instantiate the Java class JavaMapping (http://www.sdsdsd.com/XI/Sales/T~, 3bd13b30-6300-11dc-b9f1-f0050aa5c91a, -1)</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Please help me out with this error.

    Hi Anu,
    Currently I am also facing the same Unable to instantiate the Java class  same java class is working fine in eclipse .
    Could you please confirm Is this because of version mismatch that in Eclipse JAVA and SAP JAVA ?
    Thanks in Advance.
    Best,
    Srinivas

  • How to handle the java.policy file ?

    Can somebody tell me how to handle the java.policy file?
    I always get java.net.SocketExceptions and java.security.AccessControlExceptions while connecting to an appserver from an applet.
    What do I have to write in the java.policy file, where do I have to place it and do I have to call it in some way form my applet?
    Thanks in advance.
    don call

    The java.policy file goes in your jre installation directory in .../jre/lib/security (there should be one there already).
    I used it to allow otherwise restricted permissions for an applet using javax.comm. Add something like the following to the file:
    grant codeBase "URL:http://yourDomainName/rootDirectoryOfYourApp/*" {
         permission java.security.AllPermission;
    This will give the applet downloaded from your site all permissions. You might want to give only certain permissions, I don't know.
    Teri

  • SDDM 4 EA3: Unable to launch the Java Virtual Machine (Win 7 64bit)

    SQL Developer v4 EA3 is working fine, but I decided to download the stand-alone SQL Developer Data Modeler because I had seen people recommending using it in favor of the one bundled with SQLDEV.
    Windows 7 64-bit
    Java (64 bit) installed into C:\Program Files\Java\jdk1.7.0_25
    When I double-click the short-cut to start SDDM I get the following pop-up dialog error:
    Title:  Oracle SQL Developer Data Modeler
    Unable to launch the Java Virtual Machine
    Located at path:
    C:\Program Files\Java\jdk1.7.0_25\bin\msvcr100.dll
    ***NewsFlash***
    I think I stumbled on the solution just prior to posting,  so here is what worked for me in case anyone else runs into this....
    I had created a desktop short-cut to "C:\Program Files\datamodeler\datamodeler.exe", which I am guessing is the 32bit version of the binary file.   
    I was able to launch successfully by pointing to "C:\Program Files\datamodeler\datamodeler64.exe"

    That path is incorrect - strip everything after the jdk1.7.0_45\

  • Is Firefox 3.6.10 technology unable to handle the new youtube?

    Youtube made some sort of change(s) 1 day ago. Ever since then numerous links freeze up and firefox loads a "500 internal server error" page. The old youtube user interface was enforced once again. No change after disabling all my extensions. These same sites and new interface load on Chrome, Safari, Firefox4.
    Is the current Firefox 3.6.10 technology unable to handle the new youtube?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Sqldeveloper - Windows 7 64 Bit - unable to launch the Java Virtual Machine located at ...

    Hi,
    I have:
    jdk 1.6.0_30
    SQL developer 2.1.1
    both for windows x 64
    My system is windows 7 enterprise and in control panel the path for java JRE is C:\Program Files\Java\jre6\bin\javaw.exe
    In sqldeveloper.conf the SetJavaHome is C:\Program Files\Java\jdk1.6.0_30
    The sql developer doesn’t work, the error is: unable to launc the Java Virtual Machine located at path
    C:\Program Files\Java\jdk1.6.0_30\jre\bin\server\jvm.dll
    Can Someone help me?
    Thanks in advance
    Diego

    You could try upgrading to SQL Developer 3 which is more up to date.
    Try running <sqldev>\sqldeveloper\bin\sqldeveloper.exe from a cmd window and see
    if there is any more information.
    If you type java -version in the same command window what do you get?

  • Unable to download the Java 6 JDK API documentation

    Hi,
    now that all the stuff is on Oracle, I'm unable to download the Java 6 API documentation for offline use. NetBeans (an Oracle product after all) requires a local copy to show JavaDoc with code completion.
    Is anyone able to point me to the correct download location? I've browsed the new JDK download page many times and haven't found it.
    Thank you.

    What about [here?|http://www.oracle.com/technetwork/java/javaee/documentation/apis-139520.html]
    It wasn't that hard to find.
    Oops, the requirement wasn't for java ee.
    Edited by: Kayaman on 4.8.2010 10:43

  • Unable to compile the Java Files generated by JAXB

    Hi,
    I have generated the Java Files for a DTD and .xjs file using JAXB. But when i tyr to compile the .java files generated i am getting errors.
    My DTD file is addctq.dtd
    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT AddCtq (Ctq*)>
    <!ELEMENT Ctq (PartNumber ,PartDescription,CtqDescription,CtqType,ProductLine,Supplier,Ppctq,Ctp,Ctc,CtqCode1,CtqCode2,CtqCode3,Commodity,SubCommodity,UnitOfMeasure,Client,SamplingFrequency,Remarks,VariableData)>
    <!ELEMENT VariableData (SubGroupSize, Specification,Nominal,Usl,Ual,Lal,Lsl,Zal,RangeVal?,RangeAlarmVal?)>
    <!ELEMENT PartNumber (#PCDATA)>
    <!ATTLIST PartNumber new CDATA #REQUIRED >
    <!ELEMENT PartDescription (#PCDATA)>
    <!ELEMENT CtqDescription (#PCDATA)>
    <!ELEMENT CtqType (#PCDATA)>
    <!ELEMENT ProductLine (#PCDATA)>
    <!ELEMENT Supplier (#PCDATA)>
    <!ELEMENT Ppctq (#PCDATA)>
    <!ELEMENT Ctp (#PCDATA)>
    <!ELEMENT Ctc (#PCDATA)>
    <!ELEMENT CtqCode1 (#PCDATA)>
    <!ELEMENT CtqCode2 (#PCDATA)>
    <!ELEMENT CtqCode3 (#PCDATA)>
    <!ELEMENT Commodity (#PCDATA)>
    <!ELEMENT SubCommodity (#PCDATA)>
    <!ELEMENT UnitOfMeasure (#PCDATA)>
    <!ELEMENT Client (#PCDATA)>
    <!ELEMENT SamplingFrequency (#PCDATA)>
    <!ELEMENT Remarks (#PCDATA)>
    <!ELEMENT SubGroupSize (#PCDATA)>
    <!ELEMENT Specification (#PCDATA)>
    <!ELEMENT Nominal (#PCDATA)>
    <!ELEMENT Usl (#PCDATA)>
    <!ELEMENT Ual (#PCDATA)>
    <!ELEMENT Lal (#PCDATA)>
    <!ELEMENT Lsl (#PCDATA)>
    <!ELEMENT Zal (#PCDATA)>
    <!ELEMENT RangeVal (#PCDATA)>
    <!ELEMENT RangeAlarmVal (#PCDATA)>
    and the .xjs file i created is addctq.xjs
    <?xml version="1.0" encoding="UTF-8" ?>
    <xml-java-binding-schema version="1.0-ea">
    <options package="com.geindustrial.sqms"/>
    <element name="AddCtq" type="class" root="true">
    <content>
    <element-ref name="Ctq"/>
    </content>
    </element>
    <element name="Ctq" type="class">
    <content>
         <element-ref name="PartNumber"/>
         <element-ref name="PartDescription"/>
         <element-ref name="CtqDescription"/>
         <element-ref name="CtqType"/>
         <element-ref name="ProductLine"/>
         <element-ref name="Supplier"/>
         <element-ref name="Ppctq"/>
         <element-ref name="Ctp"/>
         <element-ref name="Ctc"/>
         <element-ref name="CtqCode1"/>
         <element-ref name="CtqCode2"/>
         <element-ref name="CtqCode3"/>
         <element-ref name="Commodity"/>
         <element-ref name="SubCommodity"/>
         <element-ref name="UnitOfMeasure"/>
         <element-ref name="Client"/>
         <element-ref name="SamplingFrequency"/>
         <element-ref name="Remarks"/>
         <element-ref name="VariableData"/>
    </content>      
    </element>
    <element name="VariableData" type="class">
    <content>
    <element-ref name="SubGroupSize"/>
    <element-ref name="Specification"/>
    <element-ref name="Nominal"/>
    <element-ref name="Usl"/>
    <element-ref name="Ual"/>
    <element-ref name="Lal"/>
    <element-ref name="Lsl"/>
    <element-ref name="Zal"/>
    </content>
    </element>
    <element name="PartNumber" type="value">
    <attribute name="new"/>
    </element>
    <element name="PartDescription" type="value">
    </element>
    <element name="CtqDescription" type="value">
    </element>
    <element name="CtqType" type="value">
    </element>
    <element name="ProductLine" type="value">
    </element>
    <element name="Supplier" type="value">
    </element>
    <element name="Ppctq" type="value">
    </element>
    <element name="Ctp" type="value">
    </element>
    <element name="Ctc" type="value">
    </element>
    <element name="CtqCode1" type="value">
    </element>
    <element name="CtqCode2" type="value">
    </element>
    <element name="CtqCode3" type="value">
    </element>
    <element name="Commodity" type="value">
    </element>
    <element name="SubCommodity" type="value">
    </element>
    <element name="UnitOfMeasure" type="value">
    </element>
    <element name="Client" type="value">
    </element>
    <element name="SamplingFrequency" type="value">
    </element>
    <element name="Remarks" type="value">
    </element>
    <element name="SubGroupSize" type="value" convert="int">
    </element>
    <element name="Specification" type="value">
    </element>
    <element name="Nominal" type="value" convert="float">
    </element>
    <element name="Usl" type="value" convert="float">
    </element>
    <element name="Ual" type="value" convert="float">
    </element>
    <element name="Lal" type="value" convert="float">
    </element>
    <element name="Lsl" type="value" convert="float">
    </element>
    <element name="Zal" type="value" convert="float">
    </element>
    <element name="RangeVal" type="value" convert="float">
    </element>
    <element name="RangeAlarmVal" type="value" convert="float">
    </element>
    </xml-java-binding-schema>
    When i ran the xjc , it generated 3 .java files
    AddCtq.java , Ctq.java and VariableData.java
    But i am unable to compile any of the above files...
    The Error i am getting is
    VariableData.java:710: Undefined variable or class name: AddCtq
    return AddCtq.newDispatcher();
    ^
    1 error
    If i try to compile AddCtq.java , the Error i am getting is
    AddCtq.java:4: Class com.geindustrial.sqms.Ctq not found in import.
    import com.geindustrial.sqms.Ctq;
    ^
    AddCtq.java:169: Class com.geindustrial.sqms.Ctq not found.
    if (!(ob instanceof Ctq)) {
    ^
    AddCtq.java:170: Class com.geindustrial.sqms.Ctq not found.
    throw new InvalidContentObjectException(ob, (Ctq.class));
    ^
    3 errors
    And when i try to compile Ctq.java , i am getting the following Error:
    Ctq.java:4: Class com.geindustrial.sqms.VariableData not found in import.
    import com.geindustrial.sqms.VariableData;
    ^
    1 error
    How to solve this problem..Pls advise...
    Thanks
    Sateesh

    I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
    From your post, I gather these files are in the package: com.geindustrial.sqms
    Therefore, if they are not so already, put them under a directory structure:
    com/geindustrial/sqms
    and then compile with:
    javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
    (The above is all on one line.)
    HTH,
    Manuel Amago.

  • Unable to start the java applet

    Hi there,
    I'm having some problems with the java applet unable to display on some of the pc in the workplace. I've tried to uninstall & reinstall the jre but still to no avail.
    Scenarios:
    Log in as Administrator = OK
    Log in as user with Administrator priviledge = NOT OK
    Is there anything else which I could try? please advice & thanks so much guys.

    Not sure if this is the correct solution but to edit your classpath go to your start button and select settings. then from there select control panel. then select system and when you get the pop up menu select the advanced tab. you should see an environment variables button. when you select environment variables you will get another pop up menu. there should be a listing for classpath. select it and click edit.
    start button -> settings -> control panel -> system -> advanced -> classpath
    move your cursor to the end of the listing for your classpath and add whatever file or directory you need to add. then click ok. make sure you include the entire path and if you need to add a jar file also include the .jar extension. however, it may be enough that you include the path up to the directory where the jar is located.
    once you add to your classpath, you will need to close and restart the application that needs the new classpath.

  • I am unable to overwrite the Useragent-String in the config in Firefox 4. Any Tipps?

    In Firefox 3.6 I could add to the UserAgent-String with:
    general.useragent.extra
    But this doesnt work anymore.
    Now I want to change the string the Netbook in order to the one of the Mobile versions of firefox.
    How can I do that permanently?

    Ways to add things to the user agent string have been removed from Firefox 4. You can replace the user agent sting using general.useragent.override

  • Unable to compile the java file

    Hi,
    I am following the step by step process of DOC id : 184339.1 on How to Send an Email With Attachment Via Forms 6i Using ORA_JAVA Package. I downloaded the activation framework and sendmail 1.1.3..When i am compiling the file given the DOC id namely sendmail.java, I get the following error
    Exception in thread "main" java.lang.NoclassDefFoundError: sendmail/java
    Could anyone help me out ..
    Below is the cut and paste of the code which is used to compile..
    Thanks
    Kal
    import java.util.*; import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SendMail {       // Sender, Recipient, CCRecipient, and BccRecipient are comma-       // separated lists of addresses;       // Body can span multiple CR/LF-separated lines;       // Attachments is a ///-separated list of file names;       public static int Send(String SMTPServer,                              String Sender,                              String Recipient,                              String CcRecipient,                              String BccRecipient,                              String Subject,                              String Body,                              String ErrorMessage[], String Attachments) {           // Error status;          int ErrorStatus = 0;              // create some properties and get the default Session;             Properties props = System.getProperties();             props.put("mail.smtp.host", SMTPServer);           Session session = Session.getDefaultInstance(props, null);            try {              // create a message;              MimeMessage msg = new MimeMessage(session);               // extracts the senders and adds them to the message;              // Sender is a comma-separated list of e-mail addresses as              // per RFC822;              {                 InternetAddress[] TheAddresses = InternetAddress.parse(Sender); msg.addFrom(TheAddresses); } // extract the recipients and assign them to the message; // Recipient is a comma-separated list of e-mail addresses // as per RFC822; {                 InternetAddress[] TheAddresses = InternetAddress.parse(Recipient); msg.addRecipients(Message.RecipientType.TO, TheAddresses); } // extract the Cc-recipients and assign them to the // message; // CcRecipient is a comma-separated list of e-mail // addresses as per RFC822; if (null != CcRecipient) {                 InternetAddress[] TheAddresses = InternetAddress.parse(CcRecipient); msg.addRecipients(Message.RecipientType.CC, TheAddresses); } // extract the Bcc-recipients and assign them to the // message; // BccRecipient is a comma-separated list of e-mail // addresses as per RFC822; if (null != BccRecipient) {                 InternetAddress[] TheAddresses = InternetAddress.parse(BccRecipient); msg.addRecipients(Message.RecipientType.BCC, TheAddresses); } // subject field; msg.setSubject(Subject); // create the Multipart to be added the parts to; Multipart mp = new MimeMultipart(); // create and fill the first message part; {                 MimeBodyPart mbp = new MimeBodyPart();                 mbp.setText(Body);                  // attach the part to the multipart;                 mp.addBodyPart(mbp);              } // attach the files to the message; if (null != Attachments) {                 int StartIndex = 0, PosIndex = 0;                 while (-1 != (PosIndex = Attachments.indexOf("///",                                                        StartIndex))) {                    // create and fill other message parts;                    MimeBodyPart mbp = new MimeBodyPart();                    FileDataSource fds =                    new FileDataSource(Attachments.substring(StartIndex,                                                             PosIndex));                    mbp.setDataHandler(new DataHandler(fds));                    mbp.setFileName(fds.getName());                    mp.addBodyPart(mbp);                    PosIndex += 3;                    StartIndex = PosIndex;                 } // last, or only, attachment file; if (StartIndex < Attachments.length()) {                    MimeBodyPart mbp = new MimeBodyPart();                    FileDataSource fds =                  new FileDataSource(Attachments.substring(StartIndex));                    mbp.setDataHandler(new DataHandler(fds));                    mbp.setFileName(fds.getName());                    mp.addBodyPart(mbp);                 } } // add the Multipart to the message; msg.setContent(mp); // set the Date: header; msg.setSentDate(new Date()); // send the message; Transport.send(msg); } catch (MessagingException MsgException) {                ErrorMessage[0] = MsgException.toString(); Exception TheException = null; if ((TheException = MsgException.getNextException()) != null) ErrorMessage[0] = ErrorMessage[0] + "\n" + TheException.toString(); ErrorStatus = 1; } return ErrorStatus; } }

    Most common cause of the problem: JAVA_HOME environment variable not set, or set incorrectly.
    It should point to your java directory: ie C:\java1_4\ NOT C:\java1_4\bin
    Another possible cause is spaces in the path names where you have installed applications.
    Check out this page: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ for a tutorial on installing tomcat.
    If you can't sort it out on your own, we need more info:
    Where have you installed Java?
    Where have installed Tomcat?
    What is the value of JAVA_HOME environment variable?
    Good luck,
    evnafets

  • Unable to get the java system reports

    Hi all
    In portal we are unable to get java system reports
    Thanks in advance

    It seems that your WAS installation is not fully configured and / or can you check the domain name in the IGS url? Please follow these links.
    Re: Graphics Rendering Problem
    Re: Error connection IGS
    Regards,
    Nitin

Maybe you are looking for

  • Passing parameters for a query throught XML and capturing response in the same

    Hi All, I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel. Below is my XML format. <?xml versio

  • Map Legend changes when scrolling map vertically

    With the map scrolled all the way out, when you move it vertically it, the legend changes With map in middle. 5000km:5000miles with map lying on bottom of screen 5000km:2000miles with half of map scrolled out of the screen 200km:100miles with map out

  • What is the best cloud storage solution to free up space on an iPad?

    My elderly parents use an iPhone and iPad as their only computers.  They have hit their space limit for their 16 gb ipad because of photos and home videos.  They don't have a computer to download photos to.  Have you used a cloud solution to get file

  • I'm getting error -10845 on a PC 700MHz, 128MB. Why?

    I'm using LV 5.1 on Win 98 second edition. Daqcard AI-16XE-50 is being configured for one channel, and sampled at 200kS for 4096 pts; it's then configured for another channel, and the same sampling numbers. The acquisition is also being triggered onc

  • OWB Mapping populates multiple rows

    We have OWB process flow which runs at the interval of 4 hours which calls 7 OWB oracle plsql packages internally. All these 7 packages have source single table (STG) and single target table (FACT) out of these 6 interations of the job one job popula