Java and Open Adaptor

I am trying to run a java class. The java class is using openadaptor in order to upload data, but I am getting an error when I run the application:
SEVERE: AbstractReader Source failed creating instance of DOStringReader: DOStringReaderWriter: AttName or NumAttributes properties not set
AbstractReader Source failed creating instance of DOStringReader: DOStringReaderWriter: AttName or NumAttributes properties not set
at org.openadaptor.adaptor.AbstractReader.setDOStringReader(AbstractReader.java:932)
at org.openadaptor.adaptor.AbstractReader.init(AbstractReader.java:256)
at org.openadaptor.adaptor.AbstractSimpleSource.init(AbstractSimpleSource.java:551)
at org.openadaptor.adaptor.standard.FileSource.init(FileSource.java:147)
at org.openadaptor.adaptor.RunAdaptor.createSourcesAndSinks(RunAdaptor.java:1345)
at org.openadaptor.adaptor.RunAdaptor.<init>(RunAdaptor.java:401)
at server.system.CIInterfaceSinkAdapter.Execute(CIInterfaceSinkAdapter.java:107)
at server.parts._Interface._Unit.Interface_Unit_Process_Import_Payment.Process(Interface_Unit_Process_Import_Payment.java:44)
at server.parts._Interface.Interface_Import_Payment.Process(Interface_Import_Payment.java:41)
at server.system.CIBatchService.ExecuteProcess(CIBatchService.java:178)
at server.system.CIServiceFactoryBatch.main(CIServiceFactoryBatch.java:74)
May 6, 2008 4:06:12 PM server.system.CIBatchService ExecuteProcess
INFO: server.parts._Interface.Interface_Import_Payment ended at 2008-05-06 16:06
Could somebody help me?
here is the configuration file
# Adaptor adaptor - Component Names
adaptor.Controller.Name = Controller
adaptor.Logging.Name = Logging
adaptor.Component1.Name = Source
adaptor.Component2.Name = Sink
# Adaptor adaptor - Component Classes
adaptor.Controller.ClassName = org.openadaptor.adaptor.SimpleController
adaptor.Source.ClassName = org.openadaptor.adaptor.standard.FileSource
adaptor.Sink.ClassName = org.openadaptor.adaptor.LocalSink
# Adaptor adaptor - Component Links
adaptor.Source.LinkTo1 = Sink
# Adaptor adaptor - Component Controller
# Adaptor adaptor - Component Logging
adaptor.Logging.LogSetting1 = FAULT DEFAULT
adaptor.Logging.LoggingPackageInfo = true
adaptor.Logging.LoggingThreadInfo = true
# Adaptor adaptor - Component Source FileSource
adaptor.Source.DOStringReader = org.openadaptor.dostrings.FixedWidthStringReader
# Adaptor adaptor - Component Source FixedWidthStringReader
adaptor.Source.EmptyStringAsNull = true
adaptor.Source.Type1 = File_Header
adaptor.Source.File_Header.TypeFieldMatch1 = "~"
adaptor.Source.File_Header.TypeFieldNumber = 1
adaptor.Source.File_Header.FieldWidth1 = 1
adaptor.Source.File_Header.FieldWidth2 = 2
adaptor.Source.File_Header.FieldWidth3 = 2
adaptor.Source.File_Header.FieldWidth4 = 2
adaptor.Source.File_Header.AttName1 = Record_File
adaptor.Source.File_Header.AttName2 = Header_desig
adaptor.Source.File_Header.AttName3 = Major_Version
adaptor.Source.File_Header.AttName4 = Minor_Version
adaptor.Source.Type2 = Payment_Header
adaptor.Source.Payment_Header.TypeFieldMatch1 = "10"
adaptor.Source.Payment_Header.TypeFieldNumber = 1
adaptor.Source.Payment_Header.FieldWidth1 = 2
adaptor.Source.Payment_Header.FieldWidth2 = 3
adaptor.Source.Payment_Header.FieldWidth3 = 25
adaptor.Source.Payment_Header.FieldWidth4 = 8
adaptor.Source.Payment_Header.FieldWidth5 = 10
adaptor.Source.Payment_Header.FieldWidth6 = 8
adaptor.Source.Payment_Header.FieldWidth7 = 13
adaptor.Source.Payment_Header.AttName1 = Record_File
adaptor.Source.Payment_Header.AttName2 = Payment_Record_Identifier
adaptor.Source.Payment_Header.AttName3 = Payment_Code
adaptor.Source.Payment_Header.AttName4 = Payment_Date
adaptor.Source.Payment_Header.AttName5 = Batch_Number
adaptor.Source.Payment_Header.AttName6 = Detail_Count
adaptor.Source.Payment_Header.AttName7 = Total_Amount
adaptor.Source.Type3 = Payment_Detail
adaptor.Source.Payment_Detail.TypeFieldMatch1 = "11"
adaptor.Source.Payment_Detail.TypeFieldNumber = 1
adaptor.Source.Payment_Detail.FieldWidth1 = 2
adaptor.Source.Payment_Detail.FieldWidth2 = 3
adaptor.Source.Payment_Detail.FieldWidth3 = 15
adaptor.Source.Payment_Detail.FieldWidth4 = 1
adaptor.Source.Payment_Detail.FieldWidth5 = 13
adaptor.Source.Payment_Detail.FieldWidth6 = 25
adaptor.Source.Payment_Detail.FieldWidth7 = 8
adaptor.Source.Payment_Detail.FieldWidth8 = 5
adaptor.Source.Payment_Detail.FieldWidth9 = 5
adaptor.Source.Payment_Detail.FieldWidth10 = 13
adaptor.Source.Payment_Detail.AttName1 = Record_File
adaptor.Source.Payment_Detail.AttName2 = Payment_Record_Ide
adaptor.Source.Payment_Detail.AttName3 = Account_Number
adaptor.Source.Payment_Detail.AttName4 = Check_Digit
adaptor.Source.Payment_Detail.AttName5 = Payment_Amount
adaptor.Source.Payment_Detail.AttName6 = Payment_Description
adaptor.Source.Payment_Detail.AttName7 = Payment_Date
adaptor.Source.Payment_Detail.AttName8 = Sequence_Number
adaptor.Source.Payment_Detail.AttName9 = Donation_Code
adaptor.Source.Payment_Detail.AttName10 = Scan_Line_Amount
adaptor.Source.Type4 = Payment_Trailer
adaptor.Source.Payment_Trailer.TypeFieldMatch1 = "20"
adaptor.Source.Payment_Trailer.TypeFieldNumber = 1
adaptor.Source.Payment_Trailer_Record.FieldWidth1 = 2
adaptor.Source.Payment_Trailer_Record.FieldWidth2 = 2
adaptor.Source.Payment_Trailer_Record.FieldWidth3 = 8
adaptor.Source.Payment_Trailer_Record.FieldWidth4 = 13
adaptor.Source.Payment_Trailer_Record.AttName1 = Record_File
adaptor.Source.Payment_Trailer_Record.AttName2 = Payment_Record_Id
adaptor.Source.Payment_Trailer_Record.AttName3 = Detail_Count_T
adaptor.Source.Payment_Trailer_Record.AttName4 = Payment_Trailer_Amt
adaptor.Source.Type2 = File_Trailer
adaptor.Source.File_Trailer.TypeFieldMatch1 = "99"
adaptor.Source.File_Trailer.TypeFieldNumber = 1
adaptor.Source.File_Trailer.FieldWidth1 = 2
adaptor.Source.File_Trailer.FieldWidth2 = 5
adaptor.Source.File_Trailer.AttName1 = Record_File
adaptor.Source.File_Trailer.AttName2 = Count_Number_Import_Payment
# Adaptor adaptor - Component Sink LocalSink

This is my understanding from reading a few other boards. OpenOffice 3.2 apparently tests for the validity of the Java Runtime Environment by checking some character strings returned by some system functions. The latest version of the JRE from Apple (apparently this was associated with Snow Leopard) did not match the character strings expected by OpenOffice 3.2 and was then therefore rejected as being "corrupted". The release candidate versions of Open Office 3.3 have apparently had this problem corrected, although I have no idea whether it is by adding character strings to the test or eliminating the test entirely. In OpenOffice 3.2, you can turn off use of the JRE, but this may invalidate some third-party plugins.
I strongly suspect that this may be related to the fact that Apple has said that they want to have Oracle provide the JRE updates so that the updates in operating systems and Oracle products are in sync. This may also mesh with some other comments about the relationship between open source JRE development and Oracle. (This is the vastly misquoted messages about Java being deprecated.)
The following is my understanding of the options.
Load an earlier version of the JRE and get OpenOffice to use it. I'm not sure if this can be done.
Use NeoOffice, which apparently made the required change to the tests for JRE's.
Download a release candidate version of OpenOffice 3.3.
Modify the code yourself and compile your own version. (I would not recommend that choice.)

Similar Messages

  • When I try and open adobe illustrator I get a pop up message saying "To open "Adobe Illustrator CS6" you need to install the legacy Java SE 6 runtime."

    When I try and open adobe illustrator I get a pop up message saying "To open “Adobe Illustrator CS6” you need to install the legacy Java SE 6 runtime." it also says "Click “More Info…” to visit the legacy Java SE 6 download website." When i click more info it transfers me to an apple page which never loads, its just a blank page. I downloaded Java SE 6 like it says it needs but it did nothing. All of my other Adobe programs such as bridge, dreamweaver, lightroom, Photoshop, indesign, and flash all work except for illustrator. What can I do to fix this?

    Go to Apple and look for the Java for OSX 2014-001 link. Download from there and install it.

  • I keep getting an error window about java since I updated to firefox 8, my tabs will flash, tabs will close and open in a new window, everything stops working, firefox is non responsive, please help

    Since I upgraded to firefox 8, I get this error window that pops up says something about java. My tabs flicker or flash, the tabs will close and open in a new window then everything stops. Then firefox does not respond. When I get this error message, I have to close all tabs wait a few seconds then open it back up it will work for a little while and then do the same thing. I have disabled plug-ins that I do not use, I have cleared my cache and cookies, I am not happy at all with this new version. I waited a while before updating. The first time I was going to update, firefox would not let me keep my anti-virus plug-in. PLEASE HELP

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • PDF will not open in my firefox browser although i have updated my jave and adobe, they open in internet explore

    I recently downloaded the latest version of adobe reader, jave and the newest firefox version. I think 3.6.4 (but i could be mistaken). Ever since my firefox updated today 3/8/10 it has stopped opening pdf's in browser. All i see is a blank screen or sometimes just the loading blue bar. It will not open. I do not have this problem when i try an open the same files using internet explorer.

    See if the solutions in this article help to solve your problem: [[Opening PDF files within Firefox]]. For more information on using Adobe within Firefox, see [[Using the Adobe Reader plugin with Firefox]].

  • Ive recently updated my mac to OS X 10.10 and now my CS5 illustrator and photoshop will not open...  I uploaded the most recent Java and they still won't open.  Please help

    Ive recently updated my mac to OS X 10.10 and now my CS5 illustrator and photoshop will not open...  I uploaded the most recent Java and they still won't open.  Please help

    Mac,
    Nothing shows up here?
    https://www.adobe.com/account/my-products-services.html#
    With CS5 you must have registered, hopefully under your present Adobe ID.
    I am afraid the chat and phone support are off until the beginning of January.
    Serial number and activation support (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service1.html
    Adobe ID and registration support (non-CC, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-c1.html
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • I have a MAC, Ive just installed OS10.10.3 operating system in it and I can't open Photoshop.  This is a wide spread problem that involves Java and Photoshop software.  Since you produce both these products , I turn toward you to direct me to the best "Fi

    I have a MAC, Ive just installed OS10.10.3 operating system in it and I can't open Photoshop.  This is a wide spread problem that involves Java and Photoshop software.  Since you produce both these products , I turn toward you to direct me to the best "Fix"?

    Go here Mac OS X Yosemite (10.10) compatibility FAQs | CC

  • Your opinion on Java dictionary and Open JDBC

    Hi all,
    What is you experience with the Java dictionary and Open JDBC? I'm awaiting your feedback!
    My take on the topic is:
    Pros:
    - database independence, will run on any NW installation, saves labour
    Cons:
    - one schema, no way to test db code outside of NW
    Questions:
    - Is there a naming convention to prevent name clashes with SAP and other vendors objects?
    - Is there a way to deploy to a different then the default schema?
    Regards
    Gregor
    Background: Migrating an app to NW, I kept the db code using 'native JDBC', created my one schema and data source in the NW database ... and produced a functioning app.

    You can set the maximum number of connections by using:
    ServerSocket server = new ServerSocket( port, backlog );
    Where backlog is the number of connections at any one time. I'm not sure - but I'm guessing that the physical limit is dictated by your hardware. Once you queue is full of connections, you are right - any further connections are refused. The default number of connections is 50.
    Mike

  • BI Java and BI ABAP -RSPLAN issue

    Hi All
    We are working with BI system ,using BI 7.0 Java and BI ABAP as separate systems on same host.
    Already run the template intaller for BI Java and ABAP integration.
    But facing some issue ,when going ot BI ABAP and RSPLAN and clicking the Start Mideller
    it is opening a browser as http://host:8000/sap/public/myssocntl?sap-client-XXX
    Since this is not correct and it should open BI Java portal instead of ABAP stack page.
    Instead this should open a Url like this http://host:5XX00/webdynpro/dispatcher/sap.com/biplanworkbench1/Modeler?
    I check on BI ABAP system under SAP Reference IMG -> SAP Customizing Implementation Guide-> SAP NetWeaver _> Business Intelligence-> BI Integrated Planning -> Settings for Starting the Planning Modeler.
    There the default Url is BEx Portal Server and the url is        
    http://host:5XX00/webdynpro/dispatcher/sap.com/biplanworkbench1/Modeler
    Can anybody let me know why this is going to ABAP server instead it should go to Java.
    Regards
    Ajay
    Edited by: Ajay Sandal on Mar 10, 2009 2:31 PM

    Hi Ajay ..
    Good news that ur issue is resolved ..
    I have somewhat similar issue .. Hopu u can put some light ..
    I have Bi 7.o with Add on java  ,
    In RSPLAN from ABAP system , modular page is not coming . if i click on start moduler button in RSPLAN ..portal page is coming up and i have to give logging details .
    Please suggest .
    Thanks

  • Im a newbie in java and i need help. im a student

    im an I.T student in Adamson University here in the philippines i went here to ask help about our activity in school about java. our professor told us to make a program in java (btw were using netbeans) that will ask the user his birth year and then the output will tell the zodiac sign of the year entered. she told us (our prof) to make it using showInputDialog. and then to show the output we must use the JOptionPane.showMessageDialog.
    i try to do it but i found myself in trouble bcoz im new in java.
    i try to to it and here's what i did
    import javax.swing.JOptionPane;
    public class Zodiac;
    public static void main(String args[])
    String name=JOptionPane.showInputDialog("Enter your year of birth?");
    String message=String.format("Your zodiac sign is tiger");
    JOptionPane.showMessageDialog(null,message);
    i knew that i need to use conditional statements here but i dont know where to put it and how to declare the JOptionPane.etc.
    pls help me asap im a newbie.

    as you wish heres what i did. this is not a gui version
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package marlonestipona;
    * @author ESTIPONA
    import java.util.Scanner;
    public class Main {
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    int yr1;
    String tgr ="Tiger";
    String dog ="Dog";
    String rbt ="Rabbit";
    String ox ="Ox";
    String drgn ="Dragon";
    String rat ="Rat";
    String pig ="Pig";
    String rst ="Rooster";
    String hrs ="Horse";
    String shp ="Sheep";
    String mky ="Monkey";
    String snk ="Snake";
    System.out.print("Enter your birth year: ");
    yr1=input.nextInt();
    if (yr1==1974 || yr1==1986 || yr1==1998)
    System.out.printf("Your zodiac sign is %s!\n",tgr);
    }else if (yr1==1982 || yr1==1994 || yr1==2006){
    System.out.printf("Your zodiac sign is %s!\n",dog);
    }else if (yr1==1975 || yr1==1987 || yr1==1999){
    System.out.printf("Your zodiac sign is %s!\n",rbt);
    }else if (yr1==1973 || yr1==1985 || yr1==1997){
    System.out.printf("Your zodiac sign is %s!\n",ox);
    }else if (yr1==1976 || yr1==1988 || yr1==2000){
    System.out.printf("Your zodiac sign is %s!\n",drgn);
    }else if (yr1==1972 || yr1==1984 || yr1==1996){
    System.out.printf("Your zodiac sign is %s!\n",rat);
    }else if (yr1==1983 || yr1==1995 || yr1==2007){
    System.out.printf("Your zodiac sign is %s!\n",pig);
    }else if (yr1==1981 || yr1==1993 || yr1==2005){
    System.out.printf("Your zodiac sign is %s!\n",rst);
    }else if (yr1==1978 || yr1==1990 || yr1==2000){
    System.out.printf("Your zodiac sign is %s!\n",hrs);
    }else if (yr1==1971 || yr1==1991 || yr1==2003){
    System.out.printf("Your zodiac sign is %s!\n",shp);
    }else if (yr1==1980 || yr1==1992 || yr1==2004){
    System.out.printf("Your zodiac sign is %s!\n",mky);
    }else if (yr1==1977 || yr1==1989 || yr1==2001){
    System.out.printf("Your zodiac sign is %s!\n",snk);
    } else
    System.out.println("Invalid");
    now my problem is how to turn this whole code into gui using those dialog boxes.

  • Problem with Java and Zip Files

    Hello there everyone. I have a problem with trying to zip up directories with empty folders in them. They zip fine with my code, but according to winzip, the number of files in the archive is incorrect. It's supposed to have a total of 288 files in it, but when it's zipped up, it only says 284. I mention specifically the "empty directories" note because the zipping works fine without empty folders.
    Below is the code for the zip method:
    public static void zip(File[] list, File zipfile, File zipRoot)
         throws IOException {
          if (!zipfile.exists()) {
                   zipfile.createNewFile();
              else if (!zipfile.isFile()) {
                   throw new IOException("The zip file, " + zipfile.getAbsolutePath()
                             + " is not a file.");
              if (list.length == 0) {
                  LOG.error("The list of files to zip up is empty.");
              for (int i = 0; i < list.length; i++) {
                   if (!list.exists()) {
                        throw new IOException("The file or directory, " + list[i].getAbsolutePath()
                                  + " does not exist.");
              FileOutputStream fos = new FileOutputStream(zipfile);
              ZipOutputStream zos = new ZipOutputStream(fos);
              for (int i = 0; i < list.length; i++) {
                   if (LOG.isDebugEnabled())
                        LOG.debug(i + ": " + list[i].getName());
                   String entryName = getRelativeName(list[i], zipRoot);
                   if (list[i].isDirectory()){
                        if (list[i].listFiles().length == 0){
                             ZipEntry entry = new ZipEntry(entryName + "/");
                             zos.putNextEntry(entry);
                   else {
                        ZipEntry ze = new ZipEntry(entryName);
                        zos.putNextEntry(ze);
                        byte[] buffer = new byte[8096];
                        FileInputStream fis = new FileInputStream(list[i]);
                        int read = 0;
                        read = fis.read(buffer);
                        if (LOG.isDebugEnabled())
                        LOG.debug("\tFound " + read + " bytes.");
                        if (read == -1){
                             //empty file, but add it for preservation.
                             //zos.write(buffer,0,0);
                        while (read != -1) {
                             zos.write(buffer, 0, read);
                             read = fis.read(buffer);
                        fis.close();
                        zos.closeEntry();
              zos.close();
    The files look like they're there, but I need the system to be able to determine the number correctly. 
    Here's the interesting thing:  It zips the files, and then when I use the size() method for zip files in java, it says 284 files.  But when I unzip, it says 288 again.  It's like there's files missing when compressed, but when decompressed, they return.  Note that the files are actually there.  If I open the archive in a third party app such as Winzip AND Winrar AND IZarc, they all show 288 files.  Any idea what would make the number of files appear incorrectly in a zip file when zipped by java with the code above?  Thanks in advance.
    - Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figured out the problem. When zipping files in windows using winzip, it doesn't explicitly count folders as a "file/folder" as a file in itself. It will create the folders for files to go in, but the folder itself will not be 'counted' when you query the info of the file itself. You have more control of the zip file in java, and can count the folder as a file or not.

  • I'm new to Java and can't get javac command working

    Ok first of all hello ( i'm new to the forum ), second i'm reading a book about Java and im trying to compile a sample code from the book, but javac command gained life and it's against me. So the book i'm reading is Sams Teach Yourself Java in 21 Days (YAY), and the code i want to compile is an application that works with another bit of code that mimics what a robot could do inside a volcano. So the Volcano program code is the following ( i'll post the robot code at the end of the post):
    1: class VolcanoApp {
    2: public static void main(String[] arguments) {
    3: VolcanoRobot dante = new VolcanoRobot();
    4: dante.status = ?exploring?;
    5: dante.speed = 2;
    6: dante.temperature = 510;
    7:
    8: dante.showAttributes();
    9: System.out.println(?Increasing speed to 3.?);
    10: dante.speed = 3;
    11: dante.showAttributes();
    12: System.out.println(?Changing temperature to 670.?);
    13: dante.temperature = 670;
    14: dante.showAttributes();
    15: System.out.println(?Checking the temperature.?);
    16: dante.checkTemperature();
    17: dante.showAttributes();
    18: }
    19: }
    Ignore the numbers they are used for explaining stuff in the book, and i din't copy the indentation.
    So what i do is that i creat a file with notepad ( no fancy stuff only plain old notepad ) and i copy this code, remove the numbers and make the indents.
    After that i save as .txt file with the apropriate name ( i know it's case sensitive ). After that i open command prompt and write:
    javac VolcanoApp.java
    And it tells me that "javac is not recognized as an internal or external command operable program or batch file".
    I managed to solve that by going to the control panel and by adding to the system variables for my user in the path variable this :
    ;C:\JAVAJDK\bin
    ( C:\JAVAJDK is where JDK is installed)
    And then i modified the system variables like this:
    In the CLASSPATH i entered this .;%JAVA_HOME%\lib\tools.jar
    In JAVA_HOME i entered this C:\JAVAJDK
    Setting the variables like this made the javac error go away but now when i write in command line
    javac VolcanoApp.java
    It gives me this error
    javac: file not found : VolcanoApp.java
    Usage: javac options source files
    use -help for a list of possible options
    And then i read that i can drop my java file directly in the javac file. So i did.
    When i drop my VolcanoApp.java in the javac file it open a command line window and writes a bunch of stuff in like a milisecond and shuts down. And no file is created.
    I wanted to know what was writen in that window so i did it again and took a print screen and pasted it on paint ( it writed so much text that i only got a little bit but enough to see what hapend)
    I read it and in the print screen it said it had 15 errors ( so far ) and then it point the errors with little arrows and there were characters that weren't present in the original code.
    What hapend the compiler added wierd letters?
    SO, my real question is, how the heck do i get javac working and compiling stuff properly?
    Plz help i'm getting mad at this! ; (
    And the code for the "robot":
    1: class VolcanoRobot {
    2: String status;
    3: int speed;
    4: float temperature;
    5:
    6: void checkTemperature() {
    7: if (temperature > 660) {
    8: status = ?returning home?;
    9: speed = 5;
    10: }
    11: }
    12:
    13: void showAttributes() {
    14: System.out.println(?Status: ? + status);
    15: System.out.println(?Speed: ? + speed);
    16: System.out.println(?Temperature: ? + temperature);
    17: }
    18: }
    Again no indents and ignore the numbers. In the book it only said to compile the VolcanoApp.java , and not the VolcanoRobot.java
    Edit:
    I'm using Windows Vista Home Premium 32 bit.
    Edited by: BBlop on Dec 13, 2009 11:29 AM

    guess what it says java file. So yes i'm sure. Sarcasm. Not the best way to encourage a total stranger to help you. Then there's
    Sorry if i wasn't more clear but was that response needed?No it wasn't needed, but I'm not the one asking for help so I have the luxury of not worrying too much about it. It's extremely frustrating trying to drag relevant information out of someone, and makes one less inclined to bother.
    Anyways, there's still nothing in this thread that actually explicitly says "there is a file called VolcanoApp.java in the directory where I'm running javac from" and I really can't be bothered banging my head against the wall any longer. You've made a silly mistake, or a false assumption. We all do it from time to time. My advice is, take a break, go for a walk and re-visit this in a while. You'll probably spot the mistake right away.

  • İpod touch 3rd gen. OS.4.3.1 Shuts down and opens again while i use applications.

    It is doing that after 2 or 3 months after i bought.For example i open Fifa 11 pick team and start the match when match starts it shuts down and the apple logo appears and open again.It does in İnfinity blade,X2 Football 2010.But not in Battlefield Bad Company or X2Footbal 2009.I sent it to service 1 month ago they only changed my battery said it is caused by charging it from Pc.Now i am charging it from usb adaptor but nothing changed.Please help me.I am sick of this.
    Thanks.

    Hi,
    Try double-clicking the home button and closing the app(s) you are having trouble with from the multi-tasking tray (press and hold down the app until it starts to shake, and then tap the little red minus sign on the app).  Then, try resetting your iPod:  http://support.apple.com/kb/HT1430. 
    Hope this helps! 
    ---likeabird---

  • Close the current UI and open another one

    Hello everyone,
    I've got the following code and I want to close the current window and open another one. When i use "System.exit(1);" it closes everything when I use "this.dispose()" it doesn't close anything what could I try to get this to work? any suggestions?
    the code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    //public class Equip_or_Job implements ActionListener {
    public class Equip_or_Job extends Frame implements ActionListener {
        JFrame dFrame;
        JPanel jePanel;
        JButton choice;
        JComboBox jeqid = new JComboBox();
        public Equip_or_Job() {
            //Create and set up the window.
            dFrame = new JFrame("Work with Jobid or Equipid");
            dFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the panel.
            jePanel = new JPanel(new GridLayout(2, 1));
            dFrame.getContentPane().setLayout(new BorderLayout());
            //Add the widgets.
            addWidgets();
            //Set the default button.
            dFrame.getRootPane().setDefaultButton(choice);
            //Add the panel to the window.
            dFrame.getContentPane().add(jePanel, BorderLayout.CENTER);
            //Display the window.
            dFrame.pack();
            dFrame.setVisible(true);
    Create and add the widgets.
        private void addWidgets() {
             //Create widgets.
              jeqid.addItem("Chose by Job");
              jeqid.addItem("Chose by Equipment");
              choice = new JButton("Chose");
                //Listen to events from the Convert button.
                choice.addActionListener(this);
              jePanel.add(jeqid);
              jePanel.add(choice);
        public void actionPerformed(ActionEvent event) {
              String sel = (String) jeqid.getSelectedItem();
            if("Chose by Job".equals(sel)){
                   InsertNewDates inj = new InsertNewDates();
                   //System.exit(1);
                   dispose();
              else if("Chose by Equipment".equals(sel)){
                   InsertNewDates ineq = new InsertNewDates();
                   //System.exit(1);
                   dispose();
    Create the GUI and show it.  For thread safety,
    this method should be invoked from the
    event-dispatching thread.
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            try {
                   UIManager.setLookAndFeel(
                        UIManager.getCrossPlatformLookAndFeelClassName());
              catch (Exception e) { }
            Equip_or_Job eorj = new Equip_or_Job();
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    thanks in advance :o)

    I'm not exactly sure what you want to do, but...:
    dFrame.setVisible(false) hides the current Frame and the application is still running
    Best reagrds, Marco

  • To find and open Crystal Reports using SI_Name & SI_PARENT_FOLDER

    Hi,
    I have been given the below properties and link, which uses Crystal Reports (I guess its using java integration)
    http://<portal server>/projectsportal/jsp/collaboration/deliverables/pdf_report.jsp?entity=1&Entity_Type=P&Key_Indicators=Y&LV_FROM_FY=&LV_TO_FY=
    The properties used are
    CMSName = 138.220.5.56:6400
    hostName= crystalprd
    authentication = secEnterprise
    #infoStoreQuery = SELECT * FROM CI_INFOOBJECTS WHERE ( SI_NAME = 'OrganizationReport' AND SI_PROGID = 'CrystalEnterprise.Report' AND SI_PARENT_FOLDER = 2000 )
    infoStoreQuery = SELECT * FROM CI_INFOOBJECTS WHERE ( SI_NAME = 'scorecard' AND SI_PROGID = 'CrystalEnterprise.Report' )
    I have to make few changes in the Crystal Reports.
    Please help me in finding out the report.  What is the location of the report ?
    Thanks in Advance for your timely help.
    Eswari.

    You have most of the info already here.  Just use Query Builder to pull back the rest of the object info and you'll have what you need.  I'm not sure which report you want, but either can be achieved in much of the same way.  You'll need to know the parent-child heirarchy for the folder structure to determine where this report sits.  once you have this info, open the CR designer and open the report from the repository navigating the folder heirarchy you found.
    1.  Open "Query Builder" from the start | programs menu on the server.  Depending on the version of XI you are using, the url will differ.
    2.  Execute a query similar to what you posted to bring back the info for the report object (not instances) with the name 'scorecard'. If multiple reports exist in different folders with the same name, they will all be returned.
    SELECT * FROM CI_INFOOBJECTS WHERE SI_NAME = 'scorecard' AND SI_PROGID = 'CrystalEnterprise.Report' and SI_INSTANCE = 0
    3.  Look for SI_PARENT_FOLDER attribute and query on this ID next.  That should give you the name of the parent folder the report sits within.
    SELECT * FROM CI_INFOOBJECTS WHERE SI_ID = <si_parent_folder>
    4.  You will need to keep querying for the parent in order to work your way up the folder tree.

Maybe you are looking for