Please help me on java Logger......

Hi,
can anyone give me a good tutorial link on java Logger?
one more doubt,
In logging, in the log file the info is saved in XML format.
How can i change it to normal text format?
pls help.....
-Soni.

Hi,
I guess, there is one tutorial for logger in java site...if not, try log4j tutorial of apache...both are the same. As for as ur question is concerned - if you dont specify a log formatter, java loads the default formatter from $JAVA_HOME/jre/lib/logging.properties
If you check there, by default you will have
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
u can change it to java.util.logging.SimpleFormatter
if you go through that properties file, i think it would be more than sufficient than beating the bush for tutorials. ;-)

Similar Messages

  • Help needed on java Logger, please...........

    Hi,
    can anyone give me a good tutorial link on java Logger?
    one more doubt,
    In logging, in the log file the info is saved in XML format.
    How can i change it to normal text format?
    pls help.....
    -Soni.

    [url http://forum.java.sun.com/thread.jsp?thread=454149&forum=57&message=2068577]crosspost

  • Please help C++ into java.

    Hello,
    I am working one small swing program. And want to know about c++ code. Can any one tell me that can we convert the c++ code into java code. My c++ code is:
    void Activity::computeInternalStructure(Rules& r)
         //the internal subgroups list must be computed before entering here.
         //teachers
         //this->nTeachers=0;
         this->iTeachersList.clear();
         for(QStringList::Iterator it=this->teachersNames.begin(); it!=this->teachersNames.end(); it++){
              int tmp;
              for(tmp=0; tmp<r.nInternalTeachers; tmp++){
                   if(r.internalTeachersList[tmp]->name == (*it))
                        break;
              assert(tmp < r.nInternalTeachers);
              //assert(this->nTeachers<MAX_TEACHERS_PER_ACTIVITY);
              //this->teachers[this->nTeachers++]=tmp;
              this->iTeachersList.append(tmp);
         //subjects
         this->subjectIndex = r.searchSubject(this->subjectName);
         assert(this->subjectIndex>=0);
         //activity tags
         this->iActivityTagsSet.clear();
         foreach(QString tag, this->activityTagsNames)
              assert(tag!="");
              int index=r.searchActivityTag(tag);
              assert(index>=0);
              this->iActivityTagsSet.insert(index);
         //this->activityTagIndex = r.searchActivityTag(this->activityTagName);
         //students     
         //this->nSubgroups=0;
         this->iSubgroupsList.clear();
         for(QStringList::Iterator it=this->studentsNames.begin(); it!=this->studentsNames.end(); it++){
              StudentsSet* ss=r.searchAugmentedStudentsSet(*it);
              assert(ss);
              if(ss->type==STUDENTS_SUBGROUP){
                   int tmp;
                   /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                        if(r.internalSubgroupsList[tmp]->name == ss->name)
                             break;*/
                   tmp=((StudentsSubgroup*)ss)->indexInInternalSubgroupsList;
                   assert(tmp>=0);
                   assert(tmp<r.nInternalSubgroups);
                   //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                   bool duplicate=false;
                   if(this->iSubgroupsList.contains(tmp))
                   //for(int j=0; j<this->nSubgroups; j++)
                   //     if(this->subgroups[j]==tmp)
                             duplicate=true;
                   if(duplicate){
                        QString s;
                        s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                             .arg(this->id);               
                        cout<<qPrintable(s)<<endl;
                   else
                        this->iSubgroupsList.append(tmp);
                        //this->subgroups[this->nSubgroups++]=tmp;
              else if(ss->type==STUDENTS_GROUP){
                   StudentsGroup* stg=(StudentsGroup*)ss;
                   for(int k=0; k<stg->subgroupsList.size(); k++){
                        StudentsSubgroup* sts=stg->subgroupsList[k];
                        int tmp;
                        /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                             if(r.internalSubgroupsList[tmp]->name == sts->name)
                                  break;*/
                        tmp=sts->indexInInternalSubgroupsList;
                        assert(tmp>=0);
                        assert(tmp<r.nInternalSubgroups);
                        //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                        bool duplicate=false;
                        if(this->iSubgroupsList.contains(tmp))
                        //for(int j=0; j<this->nSubgroups; j++)
                        //     if(this->subgroups[j]==tmp)
                                  duplicate=true;
                        if(duplicate){
                             QString s;
                             s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                                  .arg(this->id);
                             cout<<qPrintable(s)<<endl;
                        else
                             //this->subgroups[this->nSubgroups++]=tmp;
                             this->iSubgroupsList.append(tmp);
              else if(ss->type==STUDENTS_YEAR){
                   StudentsYear* sty=(StudentsYear*)ss;
                   for(int k=0; k<sty->groupsList.size(); k++){
                        StudentsGroup* stg=sty->groupsList[k];
                        for(int l=0; l<stg->subgroupsList.size(); l++){
                             StudentsSubgroup* sts=stg->subgroupsList[l];
                             int tmp;
                             /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                                  if(r.internalSubgroupsList[tmp]->name == sts->name)
                                       break;*/
                             tmp=sts->indexInInternalSubgroupsList;
                             assert(tmp>=0);
                             assert(tmp<r.nInternalSubgroups);
                             //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                             bool duplicate=false;
                             if(this->iSubgroupsList.contains(tmp))
                             //for(int j=0; j<this->nSubgroups; j++)
                             //     if(this->subgroups[j]==tmp)
                                       duplicate=true;
                             if(duplicate){
                                  QString s;
                                  s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                                       .arg(this->id);
                                  QObject::tr("&Ok"));
                                  cout<<qPrintable(s)<<endl;
                             else{
                                  //this->subgroups[this->nSubgroups++]=tmp;
                                  this->iSubgroupsList.append(tmp);
              else
                   assert(0);
    }Please help me. In this code we are using some variables. with QT GUI in c++.
    Thanks in advance.
    Manveer.

    Manveer-Singh wrote:
    Hello,
    I am working one small swing program. And want to know about c++ code. Can any one tell me that can we convert the c++ code into java code. My c++ code is:
    void Activity::computeInternalStructure(Rules& r)
         //the internal subgroups list must be computed before entering here.
         //teachers
         //this->nTeachers=0;
         this->iTeachersList.clear();
         for(QStringList::Iterator it=this->teachersNames.begin(); it!=this->teachersNames.end(); it++){
              int tmp;
              for(tmp=0; tmp<r.nInternalTeachers; tmp++){
                   if(r.internalTeachersList[tmp]->name == (*it))
                        break;
              assert(tmp < r.nInternalTeachers);
              //assert(this->nTeachers<MAX_TEACHERS_PER_ACTIVITY);
              //this->teachers[this->nTeachers++]=tmp;
              this->iTeachersList.append(tmp);
         //subjects
         this->subjectIndex = r.searchSubject(this->subjectName);
         assert(this->subjectIndex>=0);
         //activity tags
         this->iActivityTagsSet.clear();
         foreach(QString tag, this->activityTagsNames)
              assert(tag!="");
              int index=r.searchActivityTag(tag);
              assert(index>=0);
              this->iActivityTagsSet.insert(index);
         //this->activityTagIndex = r.searchActivityTag(this->activityTagName);
         //students     
         //this->nSubgroups=0;
         this->iSubgroupsList.clear();
         for(QStringList::Iterator it=this->studentsNames.begin(); it!=this->studentsNames.end(); it++){
              StudentsSet* ss=r.searchAugmentedStudentsSet(*it);
              assert(ss);
              if(ss->type==STUDENTS_SUBGROUP){
                   int tmp;
                   /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                        if(r.internalSubgroupsList[tmp]->name == ss->name)
                             break;*/
                   tmp=((StudentsSubgroup*)ss)->indexInInternalSubgroupsList;
                   assert(tmp>=0);
                   assert(tmp<r.nInternalSubgroups);
                   //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                   bool duplicate=false;
                   if(this->iSubgroupsList.contains(tmp))
                   //for(int j=0; j<this->nSubgroups; j++)
                   //     if(this->subgroups[j]==tmp)
                             duplicate=true;
                   if(duplicate){
                        QString s;
                        s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                             .arg(this->id);               
                        cout<<qPrintable(s)<<endl;
                   else
                        this->iSubgroupsList.append(tmp);
                        //this->subgroups[this->nSubgroups++]=tmp;
              else if(ss->type==STUDENTS_GROUP){
                   StudentsGroup* stg=(StudentsGroup*)ss;
                   for(int k=0; k<stg->subgroupsList.size(); k++){
                        StudentsSubgroup* sts=stg->subgroupsList[k];
                        int tmp;
                        /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                             if(r.internalSubgroupsList[tmp]->name == sts->name)
                                  break;*/
                        tmp=sts->indexInInternalSubgroupsList;
                        assert(tmp>=0);
                        assert(tmp<r.nInternalSubgroups);
                        //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                        bool duplicate=false;
                        if(this->iSubgroupsList.contains(tmp))
                        //for(int j=0; j<this->nSubgroups; j++)
                        //     if(this->subgroups[j]==tmp)
                                  duplicate=true;
                        if(duplicate){
                             QString s;
                             s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                                  .arg(this->id);
                             cout<<qPrintable(s)<<endl;
                        else
                             //this->subgroups[this->nSubgroups++]=tmp;
                             this->iSubgroupsList.append(tmp);
              else if(ss->type==STUDENTS_YEAR){
                   StudentsYear* sty=(StudentsYear*)ss;
                   for(int k=0; k<sty->groupsList.size(); k++){
                        StudentsGroup* stg=sty->groupsList[k];
                        for(int l=0; l<stg->subgroupsList.size(); l++){
                             StudentsSubgroup* sts=stg->subgroupsList[l];
                             int tmp;
                             /*for(tmp=0; tmp<r.nInternalSubgroups; tmp++)
                                  if(r.internalSubgroupsList[tmp]->name == sts->name)
                                       break;*/
                             tmp=sts->indexInInternalSubgroupsList;
                             assert(tmp>=0);
                             assert(tmp<r.nInternalSubgroups);
                             //assert(this->nSubgroups<MAX_SUBGROUPS_PER_ACTIVITY);
                             bool duplicate=false;
                             if(this->iSubgroupsList.contains(tmp))
                             //for(int j=0; j<this->nSubgroups; j++)
                             //     if(this->subgroups[j]==tmp)
                                       duplicate=true;
                             if(duplicate){
                                  QString s;
                                  s=QObject::tr(QString("Warning: activity with id=%1\ncontains duplicated subgroups. Automatically correcting..."))
                                       .arg(this->id);
                                  QObject::tr("&Ok"));
                                  cout<<qPrintable(s)<<endl;
                             else{
                                  //this->subgroups[this->nSubgroups++]=tmp;
                                  this->iSubgroupsList.append(tmp);
              else
                   assert(0);
    }Please help me. In this code we are using some variables. with QT GUI in c++.
    Thanks in advance.
    Manveer.why do you say this?
    My c++ code is:and
    In this code we are using some variables. with QT GUI in c++. You didn't code that. Liviu Lalescu code that, not you.
    He has rights on that code and he published it under gpl.
    So you must say that it is from him, not from you.
    Also if you "translate" (modify) his algorithm you must still care about the gpl. Please read whole gpl and care about that.
    Regards,
    Volker Dirr
    PS:
    compare original code from Liviu at sourceforge or at his homepage:
    http://lalescu.ro/liviu/fet/
    you can see the copied copy in /src/engine/activity.cpp line 167 and following.

  • PLEASE HELP - unreported exception java.sql.SQLException

    Basically create a database where Time is a field where its automatic enters date and time so no records need to be entered. and the Amount is when the user clicks on a button that amount is stored..basically how do i insert just the amount field
    heres a snippet of the code..
    CarParkDB db=new CarParkDB();
    db.DBConnection();
    String sql="insert into Stats (Time, Amount)"+
    "values ('"+null+"','"+amount+"')";
    db.s.executeQuery(sql); // executing the sq
    Please kindly help me..thank you

    Dont understand or know what the SQL is. The code is
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String sourceURL =
    "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=CarPark.mdb;";
    Connection CarPark =
    DriverManager.getConnection(sourceURL, "admin", "");
    Statement myStatement = CarPark.createStatement();
    String writeString =
    "insert into Stats(Amount) values("+(payment / 100.0)+")";
    myStatement.executeUpdate(writeString);
    ResultSet results = myStatement.executeQuery
    ("SELECT Amount, Time");
    while (results.next()) {
    System.out.print(results.getString(1) + " ");
    System.out.print(results.getString(2) + " ");
    System.out.println(results.getString(3));
    results.close();
    Error is: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2.
    I have two colums in the db - Time & amount. The time is updated, but the amount is not.

  • Can Someone Please Help With A Java App.

    A while back, I had a program that I was working on, while taking Java in a Web Design & Development course -- this was back in 1999 -- not having the mindset of a programmer I failed that part of the course misrably. I had to do the following program, but you can see why I failed, I only managed to write to lines of code. I am wondering if there is anyone who can write it to the following criteria, maybe even make it graphical...I am hoping to try and write an XML backend to it like I wanted to do in 1999; unfortunately I lost the code that someone was nice enought to supply after I failed that part of the 6 month course...so if anyone can help please let me know. I want to try learning Java again, but it would be cool to see the following in working order again. If you're wondering why I still have the following, I just found it again while going through my Experts Exchange postings.
    import java.awt.*;
    public class CourseMarks extends Applet {
    Of course I think this is wrong, but here is what I need done:
    Define a class (data structure) to represent the people taking a course. For each person, you should record their name, their mid-term mark, their final mark, and any other information you think is relevant (hint: how do you find all the people in the class?)
    A) The Applet/Program must be called CourseMarks
    B) Write the class in Java
    C) Create a variable called courseList to record students of a specific course, then write code to initialise it with information about three students.
    D) Letter grades are to be awarded to the people taking the course, and you have to write a method to translate the final mark to a letter grade for each person. Letter grades are awarded as follows: 0-49.99 = F, 50-59.99 = E, 60-69.99 = D, 70-79.99 = C, 80-89.99 = B, 90-94.99 = A, 95 and up = A+. Write a method in Java and show how you would invoke it on courseList
    E) Write a method to compute the class average for the mid-term mark (hint: follow your links), and show how you would invoke it on courseList.
    Thanks,
    Michael Lauzon, Founder
    The Quill Society
    http://www.quillsociety.org/
    [email protected]

    Here is a quick and dirty implementation. I think I have everything in there. :-) import java.util.*;
    public class CourseMarks {
        private ArrayList courseList = null;
        /** Constructor for class */
        public CourseMarks() {
        /** Populate course list with students */
        private void initList() {
            Student s1 = new Student( "Gweedo", 100.0, 100.0, 101 );
            Student s2 = new Student( "Sally", 70.4, 65.3, 101 );
            Student s3 = new Student( "Michael", 56.0, 45.0, 101 );
            courseList = new ArrayList();
            courseList.add( s1 );
            courseList.add( s2 );
            courseList.add( s3 );
        /** Returns the list of students */
        public ArrayList getCourseList() {
            return courseList;
        /** Compute and return the letter grade for the passed mark */
        public String computeLetterGrade( double mark ) {
            String grade = null;
            if( mark <= 49.99 ) {
                grade = "F";
            } else if( mark >= 50.0 && mark <= 59.99 ) {
                grade = "E";
            } else if( mark >= 60.0 && mark <= 69.99 ) {
                grade = "D";
            } else if( mark >= 70.0 && mark <= 79.99 ) {
                grade = "C";
            } else if( mark >= 80.0 && mark <= 89.99 ) {
                grade = "B";
            } else if( mark >= 90.0 && mark <= 94.99 ) {
                grade = "A";
            } else if( mark >= 95 ) {
                grade = "A+";
            return grade;
        /** Print out the letter grades for all the students in the passed list */
        public void printLetterGrades( ArrayList studentList ) {
            if( studentList != null && studentList.size() > 0 ) {
                Student aStudent = null;
                Iterator it = studentList.iterator();
                while( it.hasNext() ) {
                    aStudent = (Student)it.next();
                    System.out.println( aStudent.name + " had final mark " + aStudent.finalMark +
                        " and letter grade " + this.computeLetterGrade( aStudent.finalMark ) + "." );
        /** Compute the average mid term for the students in the passed list */
        public double computeAverageMidTerm( ArrayList studentList ) {
            double average = 0.0;
            if( studentList != null && studentList.size() > 0 ) {
                double total = 0.0;
                Student aStudent = null;
                Iterator it = studentList.iterator();
                while( it.hasNext() ) {
                    aStudent = (Student)it.next();
                    total += aStudent.midMark;
                average = total / studentList.size();
            return average;
        /** Main method so this class can be run */
        public static void main(String[] args) {
            CourseMarks app = new CourseMarks(); // Create new CourseMarks instance
            app.initList();     // Init it's list of students
            app.printLetterGrades( app.getCourseList() );   // Print letter grades for all students
            System.out.println( "Average mid term: " + app.computeAverageMidTerm( app.getCourseList() ));
            System.exit(0);
    /** Simple class that just holds a few values */
    class Student {
        public String name = null;
        public double midMark = 0.0d;
        public double finalMark = 0.0d;
        public int classNum = 0;
        public Student( String aName, double aMidTerm, double aFinal, int aClassNum ) {
            name = aName;
            midMark = aMidTerm;
            finalMark = aMidTerm;
            classNum = aClassNum;
    }

  • PLEASE HELP?? java.lang.OutOfMemoryError: PermGen space

    I've been searching the net for days and have tried changing the eclipse.ini per everyone's instructions...but still keep crashing after small changes.
    java.lang.OutOfMemoryError: PermGen space
    -startup plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform -vm C:Program Files/Java/jre6/bin/clientjvm.dll -vmargs -Dosgi.requiredJavaVersion=1.6 -Declipse.p2.unsignedPolicy=allow -Xmn256m -Xms1024m -Xmx768m -Xss4m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:CompileThreshold=5 -XX:MaxGCPauseMillis=10 -XX:MaxHeapFreeRatio=70 -XX:+CMSIncrementalPacing -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+UseFastAccessorMethods -Dcom.sun.management.jmxremote
    here's the .log
    !SESSION 2011-11-15 14:27:03.125 -----------------------------------------------
    eclipse.buildId=I20100608-0911
    java.version=1.6.0_16
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments:  -v clean
    Command-line arguments:  -os win32 -ws win32 -arch x86 -v clean
    !ENTRY org.eclipse.ui 2 0 2011-11-15 14:27:07.390
    !MESSAGE Warnings while parsing the commands from the 'org.eclipse.ui.commands' and 'org.eclipse.ui.actionDefinitions' extension points.
    !SUBENTRY 1 org.eclipse.ui 2 0 2011-11-15 14:27:07.390
    !MESSAGE Commands should really have a category: plug-in='com.qnx.flashbuilder.multiplatform.qnx.ui', id='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.OpenInfoCenter', categoryId='com.qnx.flashbuilder.multiplatform.qnx.ui.commands.category.help'
    !ENTRY org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE Keybinding conflicts occurred.  They may interfere with normal accelerator operation.
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE A conflict occurred for CTRL+G:
    Binding(CTRL+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.declarations.in.wor kspace,Declaration in Workspace,
      Search for declarations of the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.declarations.in.wor kspace,Find All Declarations In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllDeclarationsAction@6bc947)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !SUBENTRY 1 org.eclipse.jface 2 0 2011-11-15 14:27:15.218
    !MESSAGE A conflict occurred for CTRL+SHIFT+G:
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(org.eclipse.jdt.ui.edit.text.java.search.references.in.works pace,References in Workspace,
      Search for references to the selected element in the workspace,
      Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    org.eclipse.ui.contexts.window,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexide.editorcore.flexEditorScope,,,system)
    Binding(CTRL+SHIFT+G,
    ParameterizedCommand(Command(com.adobe.flexbuilder.as.editor.find.all.references.in.works pace,Find All References In Workspace,
      Category(com.adobe.flexbuilder.editorcore.navigation.category,Navigation,null,true),
      LegacyHandlerWrapper(ActionHandler(action=com.adobe.flexbuilder.as.editor.ui.actions.FindAllReferencesAction@6b5488)),
      ,,true),null),
    org.eclipse.ui.defaultAcceleratorConfiguration,
    com.adobe.flexbuilder.as.editor.context.packageexplorer,,,system)
    !ENTRY org.eclipse.core.jobs 4 2 2011-11-15 14:28:01.375
    !MESSAGE An internal error occurred during: "Building workspace".
    !STACK 0
    java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.j ava:188)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:58 0)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java: 550)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager. java:481)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(Class pathManager.java:469)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :449)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:216)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:393)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:469)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:107)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:110)
    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
    at com.adobe.flexbuilder.project.compiler.internal.BuilderUtils.copyDependents(BuilderUtils. java:483)
    at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuild er.java:393)
    at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncremen talBuilder.java:187)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)

    Also, describe your project set up. Sometimes these things can happen if your workspace is not configured correctly (like two library projects that import each other for example).
    And I assume you checked to make sure you aren't actually out of RAM?
    *edit*
    Also, you mention editing eclipse.ini, but I think you actually need FlashBuilder.ini in your FB install directory. Mine looks like this:
    -nl
    en_US
    -startup
    eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    --launcher.library
    eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
    --launcher.defaultAction
    openFile
    -vmargs
    -Xms256m
    -Xmx512m
    -XX:MaxPermSize=256m
    -XX:PermSize=64m
    -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=eclipse/dropins
    -Declipse.application=com.adobe.flexbuilder.standalone.FlashBuilderApplication
    If you are doing something that's particularly memory intesnive, try changing:
    -Xmx1024m
    -XX:MaxPermSize=512m

  • Please help to correct java error

    I am writing a program as instructed by the book I am using to learn java and I get the following error message when I try to compile the program.
    C:\jap>c:\j2sdk1.4.2\bin\javac Motorcyle.java
    Motorcyle.java:22: illegal start of expression
    void startEngine() {
    ^
    Motorcyle.java:38: ';' expected
    ^
    2 errors
    The program code is show below.
    class Motorcyle {
    public static void main (String args[]){
    Motorcyle m = new Motorcyle();
    m.make = "Yamaha RZ350";
    m.color = "yellow";
    System.out.println("Calling showAtts...");
    m.showAtts();
    System.out.println("........");
    System.out.println("Starting engine...");
    m.startEngine();
    System.out.println("........");
    System.out.println("calling showAtts...");
    m.showAtts();
    System.out.println("........");
    System.out.println("Starting engine...");
    m.startEngine();
    String make;
    String color;
    boolean engineState;
    void startEngine() {
    if (engineState == true)
    System.out.println("The engine is already on.");
    else {
    engineState = true;
    System.out.println("The engine is now on.");
    void showAtts() {
    System.out.println("This motorcyle is a "
    + color + " " + make);
    if (engineState == true)
    System.out.println("The engine is on.");
    else System.out.println("The engine is off.");
    Thanx in advance ...I hope you can help.

           boolean engineState;
       void startEngine() {                                                                                                                                                                                                                                                                   

  • Please help me with java packages...

    Hey guys,
    Im pretty new to java and I have some questions on packages.
    My friend gave me a bunch of .java files. Now, each of the files has package edu.nyu.sejava.gc.util; as the beginning.
    I know that the package name = directory structure but Im not sure on other things.
    Do I have to put all of the .class files in a directory
    C:\edu\nyu\sejava\gc\util? Is there a specific way I need to compile the files?
    I compiled the files with 'javac -d c:\classes *.java' and the class files were put in a dir C:\classes\edu\nyu\sejava\gc\util. However, when I try to run one of them, I get
    C:\classes\edu\nyu\sejava\gc\util>java LogTest
    Exception in thread "main" java.lang.NoClassDefFoundError: LogTest (wrong name: edu/nyu/sejava/gc/util/Log)
    Im confused. Why doesnt it see my class def for LogTest?
    Any help is greatly appreciated. :)
    Thanx
    Flack

    Run the class using the full name. e.g.
    java edu.nyu.sejava.gc.util.LogTest
    Make sure the classpath includes c:/classes and/or the current directory.

  • Please help break our java parser

    Hello,
    We are working on making a Java code parser that will insert timestamp before and after any synchronized events (including wait(), notify() and notifyall()). It will parse in the source code, remove comments and carriage returns (replacing with spaces). It will then replace �{� with � { �, �;� with �; �, and also have
    while(stringA.indexOf(". ")>0)
    replace(". ", ".");
    We'll then splitting the source code by spaces and check each of the tokens to see if they are a synchronized method. If it isn�t then simply return the token however if they are we will add our logging around the token and then return that (i.e. logHere(); wait(); logHere().
    Is there any other possibilities that are not covered by the way we parse a Java code?
    Thanks for your help and time!
    -Team NN

    The problem I have is I can make the tree using an array but I need to know how to turn this into code to make the RegularExpression object to be returned.
    ie if RE entered by user is a|b, I know how to make it |ab in array
    if RE entered by user is ab, I know how to make it .ab in array
    I need to know how I can than use this to recursively generate the RegularExpression object. I don't have trouble with + and '|', but I dont know how to use a recursive method to return new sybol
    Example: If Regularexpression is abc I am able to get a string from the array .a.bc
    How do I make this a RE object. The tree is right associative so I know you have to use a preorder traversal, any ideas.
    Thanks for the help before hand.
    Thank you

  • HT4592 Please help identify proper Java update

    I am trying to upload photos to an outside vender and it requires JAVA (which I must not have the latest version of because the site directed me to install it).  I am using Mac OS X version10.5.8. If I choose About Java Preferences it says I have Java 6 Standard Edition version 12.9.0.  Please tell me how to find the correct update.  Thanks so much for your assistance.

    The final Java update for Leopard was Update 10, 29 June 2011 - This release updates J2SE 5.0 to 1.5.0_30, and updates Java SE 6 to 1.6.0_26. J2SE 1.4.2 is no longer being updated to fix bugs or security issues and remains disabled by default in this update. Support for out-of-process Java applets on Mac OS X 10.5 Leopard has been removed with this update.
    This release is only for Mac OS X 10.5.8 or later versions of Mac OS X 10.5. http://support.apple.com/kb/DL1359

  • Please help: Running a java script form the windows command line.

    Hello forum,
    I'm trying to run a java script from the command line on
    windows but I always get the "Failed to open document" alert.
    I typed the following in the run command line:
    "flash.exe" C:\Documents and Settings\Hasan.Atieh\My
    Documents\science\java scripts\testing jsfl\get_files_mx2004.jsfl
    now I copied and pasted the path of my java script file from
    the windows explorer address bar so I'm sure that the java script
    file exists in the specified path.
    Any thoughts why am I getting the message!!

    :oops: never mind... issue resolved. I didn't quote the java
    script file path but thats because the help documents on flash
    didn't say that.
    this is what flash help say:
    To run a script from the command line on Windows:
    Use the following syntax (add path information as required):
    "flash.exe" myTestFile.jsfl

  • Please help: need a JAVA-only dialog instance profile

    Who could help provide a complete example? Would be greately appreciated.
    Thanks!!

    HI
    http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a610f505211d189550000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a622d505211d189550000e829fbbd/frameset.htm
    Regards
    Shridhar Gowda
    DSS Java

  • Please help with Sun Java System Communications Sync crashe with IEx 7.x

    Dear All!
    Recently i've upgrade my IExplorer to 7.x version. After that i began to have problems with Communications Sync (latest version). When i try to sync Outlook 2003 with the server (SSL connection/ self signed certificate) the Comm Sync asks if i want to allow to open connection with wrong certificate (happed only after installing IEx 7.x) and then when i press YES it crashes.
    Any help on how to fix this problem is appriciated.
    Konstantin
    P.S.: Adding a self signed certificate to IEx DB and adding the website to the trusted websites list did not help.

    Hi,
    Not sure how much we can help with this issue - especially if you are already running the latest version of the sync tool. About all I can offer is to uninstall your current sync software and reinstall the latest public version:
    http://sunsolve.sun.com/private-cgi/getpatch.pl (search for patch #124734).
    If that doesn't help I suggest you log a sun support case for this (assuming you have a sun support contract that is).
    Regards,
    Shane.

  • Please help - LDAP and Java

    LDAP is the lightweight directory access protocol, described in RFC 2251-2256,2829-2830. It defines a lightweight access mechanism in which clients send requests to and receive responses from LDAP servers.
    does any one know of any java packages that interact with LDAP
    Thanks for your help

    Thanke guys. One more question I am writing this application on AIX and I dont know if jdk1.4 works on AIX so is it possible for me to download just the javax.naming.ldap package or is there some other way I can accomplish this

  • Please help me with java

    Hi,
    I've finally able to get Java running on my mac again. But in the process I delete an unrecoverable folder. Without it, anything written with ObjCJava will not run. Can someone be kind enough to zip up your copy of this folder and let me download it? or email it to me?
    /System/Library/Java/com
    Thank you. Cool
    Oh, I forgot the mention that I'm using 10.4.6 on MBP. So I would appreciate if it was from an intel mac, thanks.

    Hi,
    Thanks for your suggestion. But those files are not included in the java update. Those are the ObjCJava class file that apple wrote, not sun. And the only way to get it is either reinstall Tiger or copy from someone else's computer. And I would prefer to skip the pain or reinstalling.
    Cheers

Maybe you are looking for

  • Yikes. Messed up Xserver with testing blah....

    Hello.. I use Nvidia 96xx... blah blah.  I added the testing repo and updated everything in an attempt to install compiz-fusion.  Silly me!  Now X server fails to start up when I boot up. Using a Zen live disc right now because my command line skills

  • JWSDP1.2 JAXB Out of memory exception

    Hai, I am using JAXB in JWSDP1.2,while compiling with xjc it is giving out of memory error.I increased the size JVM memory to 1024m. It is giving when weinclude some imporrted schemas in the schema.is anyone have idea of this kind of problem. Is ther

  • Help required on extracting information from Forum

    Hi All, We have a requirement for a KM initiative to extract below information from Forum 1)User's Q&A Threads from Oracle Forums. 2)User's Tag [From Aria] related threads from Oracle Forums Can some please provide some input/pointers on how data can

  • Pages report list of fonts used

    I am still using iWork06/Pages2 and not able to find this feature, so: In iWork08, is there a feature for generating a list of all typefaces, fonts, and sizes that have been used in the document? Such a report would be very handy when running a posts

  • Audio book tracks run together

    I have transferred audio books to iTunes and then to my iPod and the tracks run together at the very end of each track. How do I solve this?