Eof file

Firstly i wrote to file objects using ObjectOutputStream.
and I want to read all contents of file using ObjectInputStream.
I can read an object but ı wantto read all objects in file,
How can i do this?
i think that it is about eof. if it is,how can i use eof while using readObject()...
thanks...

Keep reading from the stream until it reaches the end.

Similar Messages

  • EOF file exception using adf inputfile

    We have a page with 4 input file components with autosubmit = true.
    The files to be uploaded are small in size.
    Sometime after selecting the file the UI freezes and in the logs we see error .
    ####<Feb 8, 2012 11:13:17 AM EST> <Error> <org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl> <ababkuma1> <DefaultServer> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <d5ef39f069a0f2d9:327d2a26:1355daa2220:-8000-00000000000003ef> <1328717597536> <BEA-000000> <
    java.io.EOFException
         at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:252)
         at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler._readLine(MultipartFormHandler.java:236)
         at org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.getNextPart(MultipartFormHandler.java:204)
         at org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest(FileUploadConfiguratorImpl.java:125)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServiceRequest(GlobalConfiguratorImpl.java:562)
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConfiguratorImpl.java:212)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:155)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    We are using jdev JDEVADF_11.1.1.6.0 . I know this is not released externally but I am posting this thread to know if this issue has been seen in any other release.
    I would appreciate if anyone can throw some light. How should we debug to get the root cause of issue.
    The error is intermittent.
    Following are the setting in web.xml
    <context-param>
    <!-- Maximum memory per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_MEMORY</param-name>
    <!-- Use 500K -->
    <param-value>512000</param-value>
    </context-param>
    <context-param>
    <!-- Maximum disk space per request (in bytes) -->
    <param-name>org.apache.myfaces.trinidad.UPLOAD_MAX_DISK_SPACE</param-name>
    <!-- Use 5,000K -->
    <param-value>51200000</param-value>
    </context-param>
    Thanks

    That bug refers to some changes which were made in WLS to support Servlet 3.0 file upload. However, this EOF file exception is observed in a much older release of WLS which does not have the Servlet 3.0 changes yet so that bug shouldn't apply. In addition, this exception is described as being intermittent while the Servlet 3.0 issue is consistently reproducible.

  • File not found - opening files from appXplorer

    Quite strange this one. Bear in mind, I've just started my first JSP project. So if I get some terminology wrong, please be gentle. :)
    OK; start up NitroX and open the three files I have (two in web/ one in pages/). index.jsp includes two of the other files (using <%@include/> directive)
    All is well, it recognises that they are included and the top-level tag references and variables are available in the included pages.
    When I edit and save any one of the pages, all the other pages loose thier references. Variables and tags become unresolved. If I then close the page and try and reopen it, I get an alert box with "The file file:/x:/webapps/root/cars/pages/config.jsp cannot be found".
    Any changes I make and save are successful. Restarting NitroX fixes the problem, but it happens again as soon as I save the first time. X: is a network drive, but it's actually a network drive on my machine.
    Any suggestions? Configuration dump follows:
    *** Date: 7/09/05 15:11
    *** Platform Details:
    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=I200409212000
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    C:\Documents and Settings\Shed Media\Desktop\eclipse\eclipse.exe -showsplash 600
    -exitdata
    C:\Documents and Settings\Shed Media\Desktop\eclipse\eclipse.exe -exitdata fe8_38
    -feature
    com.m7.nitrox
    -application
    org.eclipse.ui.ide.workbench
    -vm
    C:\WINDOWS\system32\javaw.exe
    eclipse.product=com.m7.nitrox
    eclipse.startTime=1126068873218
    eclipse.vm=C:\WINDOWS\system32\javaw.exe
    eclipse.vmargs=-Xms128M
    -Xmx512M
    -Dosgi.splashLocation=C:\NitroX_JSP_Editor_2.1_425\NitroX\splash.bmp
    -cp
    C:\Documents and Settings\Shed Media\Desktop\eclipse\startup.jar
    org.eclipse.core.launcher.Main
    eof=eof
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    http.proxyHost=
    http.proxyPort=
    http.proxySet=true
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\Documents and Settings\Shed Media\Desktop\eclipse\startup.jar
    java.class.version=49.0
    java.endorsed.dirs=C:\Program Files\Java\jre1.5.0_02\lib\endorsed
    java.ext.dirs=C:\Program Files\Java\jre1.5.0_02\lib\ext
    java.home=C:\Program Files\Java\jre1.5.0_02
    java.io.tmpdir=C:\DOCUME~1\SHEDME~1\LOCALS~1\Temp\
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\usr\bin;C:\Program Files\OPENXTRA\WinPCap
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.5.0_02-b09
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.5
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.5.0_02
    java.vm.info=mixed mode, sharing
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.5.0_02-b09
    line.separator=
    m7.launcher=true
    org.eclipse.jdt.debug.ui.scrapbookActive=false
    org.osgi.framework.executionenvironment=
    org.osgi.framework.language=en
    org.osgi.framework.os.name=WindowsXP
    org.osgi.framework.os.version=5.1
    org.osgi.framework.processor=x86
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.2.0
    org.w3c.css.sac.parser=com.steadystate.css.parser.SACParser
    os.arch=x86
    os.name=Windows XP
    os.version=5.1
    osgi.arch=x86
    osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start
    osgi.bundles.defaultStartLevel=4
    osgi.bundlestore=c:\Documents and Settings\Shed Media\Desktop\eclipse\configuration\org.eclipse.osgi\bundles
    osgi.configuration.area=file:/c:/Documents and Settings/Shed Media/Desktop/eclipse/configuration/
    osgi.framework=file:/c:/Documents and Settings/Shed Media/Desktop/eclipse/plugins/org.eclipse.osgi_3.1.0/
    osgi.framework.beginningstartlevel=1
    osgi.framework.version=3.0.0
    osgi.frameworkClassPath=core.jar, console.jar, osgi.jar, resolver.jar, defaultAdaptor.jar, eclipseAdaptor.jar
    osgi.install.area=file:/c:/Documents and Settings/Shed Media/Desktop/eclipse/
    osgi.instance.area=file:/x:/webapps/root/
    osgi.logfile=x:\webapps\root\.metadata\.log
    osgi.manifest.cache=c:\Documents and Settings\Shed Media\Desktop\eclipse\configuration\org.eclipse.osgi\manifests
    osgi.nl=en_AU
    osgi.os=win32
    osgi.splashLocation=C:\NitroX_JSP_Editor_2.1_425\NitroX\splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.ws=win32
    path.separator=;
    sun.arch.data.model=32
    sun.boot.class.path=C:\Program Files\Java\jre1.5.0_02\lib\rt.jar;C:\Program Files\Java\jre1.5.0_02\lib\i18n.jar;C:\Program Files\Java\jre1.5.0_02\lib\sunrsasign.jar;C:\Program Files\Java\jre1.5.0_02\lib\jsse.jar;C:\Program Files\Java\jre1.5.0_02\lib\jce.jar;C:\Program Files\Java\jre1.5.0_02\lib\charsets.jar;C:\Program Files\Java\jre1.5.0_02\classes
    sun.boot.library.path=C:\Program Files\Java\jre1.5.0_02\bin
    sun.cpu.endian=little
    sun.cpu.isalist=
    sun.desktop=windows
    sun.io.unicode.encoding=UnicodeLittle
    sun.jnu.encoding=Cp1252
    sun.management.compiler=HotSpot Client Compiler
    sun.os.patch.level=Service Pack 2
    user.country=AU
    user.dir=C:\Documents and Settings\Shed Media\Desktop\eclipse
    user.home=C:\Documents and Settings\Shed Media
    user.language=en
    user.name=Shed Media
    user.timezone=Australia/Brisbane
    user.variant=
    *** Features:
    com.exadel.studio (3.0.3) "Exadel Studio Pro"
    com.m7.nitrox (2.1.0) "NitroX"
    org.eclipse.emf (2.1.0) "Eclipse Modeling Framework (EMF)"
    org.eclipse.emf.ecore.sdo (2.1.0) "EMF Service Data Objects (SDO)"
    org.eclipse.gef (3.1.0) "Graphical Editing Framework"
    org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools"
    org.eclipse.jdt.source (3.1.0) "Eclipse Java Development Tools SDK"
    org.eclipse.jst (0.7.0) "J2EE Standard Tools"
    org.eclipse.jst (0.7.0) "J2EE Standard Tools"
    org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment"
    org.eclipse.pde.source (3.1.0) "Eclipse Plug-in Development Environment Developer Resources"
    org.eclipse.platform (3.1.0) "Eclipse Platform"
    org.eclipse.platform.source (3.1.0) "Eclipse Platform Plug-in Developer Resources"
    org.eclipse.sdk (3.1.0) "Eclipse Project SDK"
    org.eclipse.wst (0.7.0) "Web Standard Tools"
    org.eclipse.wst (0.7.0) "Web Standard Tools"
    org.eclipse.xsd (2.1.0) "XML Schema Infoset Model (XSD)"
    org.springframework.ide.eclipse (1.2.2) "Spring IDE"
    *** Plug-in Registry:
    com.exadel.common (7.0.3) "Exadel Common" [Installed]
    com.exadel.common.gef (2.0.3) "Exadel GEF Common" [Installed]
    com.exadel.examples (1.0.3) "Exadel Examples" [Resolved]
    com.exadel.jsf (6.0.3) "Exadel JSF Studio" [Installed]
    com.exadel.jsf.examples (1.0.3) "JSF Examples" [Resolved]
    com.exadel.jsf.ui (2.0.3) "Exadel JSF Studio" [Installed]
    com.exadel.jsf.verification (7.0.3) "JSF Verification" [Installed]
    com.exadel.model (7.0.3) "Exadel Model" [Installed]
    com.exadel.model.ui (7.0.3) "Exadel Model UI" [Installed]
    com.exadel.model.ui.editors (7.0.3) "Exadel Editors" [Installed]
    com.exadel.model.ui.views (7.0.3) "Exadel Studio" [Installed]
    com.exadel.orm2.core (1.0.3) "ORM_CORE" [Installed]
    com.exadel.orm2.hblibs (1.0.3) "Hibernate Jars" [Resolved]
    com.exadel.orm2.view (1.0.3) "View Plug-in" [Installed]
    com.exadel.palette (7.0.3) "Exadel Studio Palette" [Installed]
    com.exadel.project.templates (7.0.3) "Exadel Project Templates" [Installed]
    com.exadel.prompting.knowledgebase (7.0.3) "Exadel Struts Studio Prompting Knowledgebase" [Installed]
    com.exadel.struts (7.0.3) "com.exadel.struts" [Installed]
    com.exadel.struts.debug (2.0.3) "Exadel Struts Debugger" [Installed]
    com.exadel.struts.examples (1.0.3) "Struts Examples" [Resolved]
    com.exadel.struts.pro.ui (7.0.3) "Struts Studio UI" [Installed]
    com.exadel.struts.ui (7.0.3) "Exadel Struts Studio" [Installed]
    com.exadel.struts.validator.ui (7.0.3) "Exadel Struts Studio Validator" [Installed]
    com.exadel.struts.verification (7.0.3) "Struts Verification" [Installed]
    com.exadel.studio (3.0.3) "Exadel Studio Pro" [Resolved]
    com.exadel.templates (2.0.3) "Exadel Templates Plug-in" [Installed]
    com.exadel.texteditors.extensions (1.0.3) "Text Editors Extensions" [Installed]
    com.exadel.texteditors.extensions.jsf (1.0.3) "Jsf Text Editors Extensions" [Installed]
    com.exadel.texteditors.extensions.struts (1.0.3) "Struts Text Editors Extensions" [Installed]
    com.exadel.texteditors.jsp (7.0.3) "Jsp Editor Plug-in" [Installed]
    com.exadel.texteditors.jsp.preview.verification (7.0.4) "Jsp Editor Plug-in" [Installed]
    com.exadel.texteditors.xml (7.0.3) "Xml Editor Plug-in" [Installed]
    com.exadel.ui (2.0.3) "Exadel UI Plugin" [Installed]
    com.exadel.verification (7.0.3) "com.exadel.verification" [Installed]
    com.exadel.verification.ui (7.0.3) "Exadel Studio Verification Framework" [Installed]
    com.exadel.vpe (1.0.3) "Vpe Plug-in" [Installed]
    com.exadel.vpe.mozilla (1.0.3) "Visual Page Editor" [Resolved]
    com.exadel.vpe.mozilla.win32 (1.0.3) "Win32 Fragment" [Resolved]
    com.exadel.web (7.0.3) "Web" [Installed]
    com.exadel.web.debug (2.0.3) "Web Debug" [Installed]
    com.exadel.web.debug.ui (2.0.3) "Web Debug UI" [Installed]
    com.exadel.web.tiles (7.0.3) "Web Tiles" [Installed]
    com.exadel.web.tiles.ui (7.0.3) "Exadel Tiles" [Installed]
    com.exadel.web.ui (7.0.3) "Web UI" [Installed]
    com.ibm.etools.emf.event (3.0.0.1) "Event Model" [Resolved]
    com.m7.nitrox (2.1.0) "NitroX" [Active]
    com.m7.nitrox.eclipse3.0 (2.1.0) "NitroX Eclipse 3.0 Fragment" [Resolved]
    com.neomalogic.solex (0.5.2.b) "Solex" [Resolved]
    com.rohanclan.cfml (1.1.17.2) "CFML Plug-in" [Resolved]
    nu.psnet.quickimage (0.2.0) "QuickImage" [Resolved]
    org.apache.ant (1.6.2) "Apache Ant" [Resolved]
    org.apache.axis (1.2.1) "Axis121 Plug-in" [Resolved]
    org.apache.lucene (1.3.0) "Apache Lucene" [Resolved]
    org.apache.wsil4j (1.0.0) "Apache WSIL4J 1.0" [Resolved]
    org.apache.xerces (2.7.0) "Xerces 2.7.0" [Resolved]
    org.eclipse.ant.core (3.1.0) "Ant Build Tool Core" [Resolved]
    org.eclipse.ant.ui (3.1.0) "Ant UI" [Resolved]
    org.eclipse.compare (3.1.0) "Compare Support" [Active]
    org.eclipse.core.boot (3.0.0) "Core Boot" [Resolved]
    org.eclipse.core.expressions (3.1.0) "Expression Language" [Active]
    org.eclipse.core.filebuffers (3.1.0) "File Buffers" [Active]
    org.eclipse.core.resources (3.1.0) "Core Resource Management" [Active]
    org.eclipse.core.resources.win32 (3.0.0) "Core Resource Management Win32 Fragment" [Resolved]
    org.eclipse.core.runtime (3.1.0) "Core Runtime" [Active]
    org.eclipse.core.runtime.compatibility (3.0.0) "Core Runtime Plug-in Compatibility" [Resolved]
    org.eclipse.core.variables (3.0.0) "Core Variables" [Resolved]
    org.eclipse.debug.core (3.1.0) "Debug Core" [Active]
    org.eclipse.debug.ui (3.1.0) "Debug UI" [Active]
    org.eclipse.draw2d (3.1.0) "Draw2d" [Resolved]
    org.eclipse.emf (2.1.0) "Eclipse Modeling Framework (EMF)" [Resolved]
    org.eclipse.emf.ant (2.1.0) "EMF Ant Tasks" [Resolved]
    org.eclipse.emf.codegen (2.1.0) "EMF Template Code Generator" [Resolved]
    org.eclipse.emf.codegen.ecore (2.1.0) "EMF Ecore Code Generation" [Resolved]
    org.eclipse.emf.codegen.ecore.ui (2.1.0) "EMF Ecore Code Generation UI" [Resolved]
    org.eclipse.emf.codegen.ui (2.1.0) "EMF Template Code Generator UI" [Resolved]
    org.eclipse.emf.common (2.1.0) "EMF Common" [Resolved]
    org.eclipse.emf.common.ui (2.1.0) "EMF Common UI" [Resolved]
    org.eclipse.emf.commonj.sdo (2.1.0) "CommonJ SDO" [Resolved]
    org.eclipse.emf.ecore (2.1.0) "EMF Ecore" [Resolved]
    org.eclipse.emf.ecore.change (2.1.0) "EMF Ecore Change Model" [Resolved]
    org.eclipse.emf.ecore.change.edit (2.1.0) "EMF Ecore Change Edit Support" [Resolved]
    org.eclipse.emf.ecore.edit (2.1.0) "EMF Ecore Edit Support" [Resolved]
    org.eclipse.emf.ecore.editor (2.1.0) "Sample Ecore Editor" [Resolved]
    org.eclipse.emf.ecore.sdo (2.1.0) "EMF Service Data Objects (SDO)" [Resolved]
    org.eclipse.emf.ecore.sdo.edit (2.1.0) "EMF Service Data Objects (SDO) Edit Support" [Resolved]
    org.eclipse.emf.ecore.sdo.editor (2.1.0) "EMF Service Data Objects (SDO) Editor" [Resolved]
    org.eclipse.emf.ecore.xmi (2.1.0) "EMF XMI" [Resolved]
    org.eclipse.emf.edit (2.1.0) "EMF Edit" [Resolved]
    org.eclipse.emf.edit.ui (2.1.0) "EMF Edit UI" [Resolved]
    org.eclipse.emf.importer (2.1.0) "EMF Model Import Support" [Resolved]
    org.eclipse.emf.importer.ecore (2.1.0) "EMF Ecore Importer" [Resolved]
    org.eclipse.emf.importer.java (2.1.0) "EMF Annotated Java Importer" [Resolved]
    org.eclipse.emf.importer.rose (2.1.0) "EMF Rose Importer" [Resolved]
    org.eclipse.emf.mapping (2.1.0) "EMF Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore (2.1.0) "Ecore to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore.editor (2.1.0) "Ecore to Ecore Mapping Editor" [Resolved]
    org.eclipse.emf.mapping.ecore2xml (2.1.0) "Ecore to XML Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2xml.ui (2.1.0) "Ecore to XML Mapping UI" [Resolved]
    org.eclipse.emf.mapping.ui (2.1.0) "EMF Mapping UI" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore (2.1.0) "XSD to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore.editor (2.1.0) "XSD to Ecore Mapping Editor" [Resolved]
    org.eclipse.gef (3.1.0) "Graphical Editing Framework" [Resolved]
    org.eclipse.help (3.0.0) "Help System Core" [Active]
    org.eclipse.help.appserver (3.0.0) "Help Application Server" [Resolved]
    org.eclipse.help.base (3.0.0) "Help System Base" [Resolved]
    org.eclipse.help.ide (3.0.0) "Help System IDE" [Resolved]
    org.eclipse.help.ui (3.0.0) "Help System UI" [Resolved]
    org.eclipse.help.webapp (3.0.0) "Help System Webapp" [Resolved]
    org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools" [Resolved]
    org.eclipse.jdt.core (3.1.0) "Java Development Tools Core" [Active]
    org.eclipse.jdt.debug (3.1.0) "JDI Debug Model" [Active]
    org.eclipse.jdt.debug.ui (3.1.0) "JDI Debug UI" [Active]
    org.eclipse.jdt.doc.isv (3.1.0) "Eclipse JDT Plug-in Developer Guide" [Resolved]
    org.eclipse.jdt.doc.user (3.1.0) "Eclipse Java Development User Guide" [Resolved]
    org.eclipse.jdt.junit (3.1.0) "Java Development Tools JUnit support" [Resolved]
    org.eclipse.jdt.junit.runtime (3.1.0) "Java Development Tools JUnit runtime support" [Resolved]
    org.eclipse.jdt.launching (3.1.0) "Java Development Tools Launching Support" [Active]
    org.eclipse.jdt.source (3.1.0) "Eclipse Java Development Tools SDK" [Resolved]
    org.eclipse.jdt.ui (3.1.0) "Java Development Tools UI" [Active]
    org.eclipse.jem (1.1.0) "Java EMF Model" [Installed]
    org.eclipse.jem.beaninfo (1.1.0) "Java EMF Model BeanInfo (Introspection) Support" [Installed]
    org.eclipse.jem.proxy (1.1.0) "Java EMF Model Proxy Support" [Installed]
    org.eclipse.jem.ui (1.1.0) "Java EMF Model UI" [Installed]
    org.eclipse.jem.util (1.1.0) "Java EMF Model Utilities" [Installed]
    org.eclipse.jem.workbench (1.1.0) "Java EMF Model Workbench Support" [Installed]
    org.eclipse.jface (3.1.0) "JFace" [Active]
    org.eclipse.jface.text (3.1.0) "JFace Text" [Active]
    org.eclipse.jst (0.7.0) "J2EE Standard Tools" [Resolved]
    org.eclipse.jst.common.annotations.controller (0.7.0) "Annotation Controller Plug-in" [Installed]
    org.eclipse.jst.common.annotations.core (0.7.0) "Annotation Core Plug-in" [Installed]
    org.eclipse.jst.common.annotations.ui (0.7.0) "Ui Plug-in" [Installed]
    org.eclipse.jst.common.frameworks (0.7.0) "Integration Plug-in" [Installed]
    org.eclipse.jst.common.navigator.java (0.7.0) "Navigator Plug-in" [Installed]
    org.eclipse.jst.doc.user (0.7.0) "JST User Doc Plug-in" [Resolved]
    org.eclipse.jst.ejb.ui (0.7.0) "WTP EJB UI Plug-in" [Installed]
    org.eclipse.jst.j2ee (0.7.0) "J2EE Component" [Installed]
    org.eclipse.jst.j2ee.core (0.7.0) "J2EE Core Component" [Installed]
    org.eclipse.jst.j2ee.ejb (0.7.0) "EJB component Plug-in" [Installed]
    org.eclipse.jst.j2ee.ejb.annotation.model (0.7.0) "EJB Annotation Model Plug-in" [Installed]
    org.eclipse.jst.j2ee.ejb.annotations.emitter (0.7.0) "EJB Emitter Plug-in" [Installed]
    org.eclipse.jst.j2ee.ejb.annotations.ui (0.7.0) "EJB Annotations Ui Plug-in" [Installed]
    org.eclipse.jst.j2ee.ejb.annotations.xdoclet (0.7.0) "Xdoclet Annotations Plug-in" [Installed]
    org.eclipse.jst.j2ee.jca (0.7.0) "JCA Plug-in" [Installed]
    org.eclipse.jst.j2ee.jca.ui (0.7.0) "WTP JCA UI Plug-in" [Installed]
    org.eclipse.jst.j2ee.navigator.ui (0.7.0) "J2EE Extensions to Common Navigator" [Installed]
    org.eclipse.jst.j2ee.ui (0.7.0) "WTP J2EE UI Plug-in" [Installed]
    org.eclipse.jst.j2ee.web (0.7.0) "Web Plug-in" [Installed]
    org.eclipse.jst.j2ee.webservice (0.7.0) "Web Service Plug-in" [Installed]
    org.eclipse.jst.j2ee.webservices.ui (0.7.0) "WTP Webservice UI Plug-in" [Installed]
    org.eclipse.jst.jsp.core (0.7.0) "Structured Source JSP Model" [Installed]
    org.eclipse.jst.jsp.core (0.7.1) "Structured Source JSP Model" [Installed]
    org.eclipse.jst.jsp.ui (0.7.0) "SSE JSP Source Editor" [Installed]
    org.eclipse.jst.server.core (0.7.0) "Java Server Support" [Resolved]
    org.eclipse.jst.server.generic.core (0.7.0) "Generic Server Plugin" [Resolved]
    org.eclipse.jst.server.generic.serverdefinitions (0.7.0) "Generic server example definitions" [Installed]
    org.eclipse.jst.server.generic.ui (0.7.0) "Generic Server Plugin UI" [Installed]
    org.eclipse.jst.server.geronimo.core (0.7.0) "Geronimo server support" [Installed]
    org.eclipse.jst.server.geronimo.ui (0.7.0) "Geronimo server UI support" [Installed]
    org.eclipse.jst.server.tomcat.core (0.7.0) "Apache Tomcat Support" [Installed]
    org.eclipse.jst.server.tomcat.ui (0.7.0) "Apache Tomcat UI Support" [Installed]
    org.eclipse.jst.server.ui (0.7.0) "Java Server UI Support" [Installed]
    org.eclipse.jst.server.websphere.core (0.7.0) "WebSphere Generic Server Definition Core Plug-in" [Installed]
    org.eclipse.jst.servlet.ui (0.7.0) "WTP Servlet UI Plug-in" [Installed]
    org.eclipse.jst.ws (0.7.0) "Web Services" [Installed]
    org.eclipse.jst.ws.axis.consumption.core (0.7.0) "Web service Axis Consumption Core" [Installed]
    org.eclipse.jst.ws.axis.consumption.ui (0.7.0) "Webservice Axis Consumption UI" [Installed]
    org.eclipse.jst.ws.axis.consumption.ui (0.7.1) "Webservice Axis Consumption UI" [Installed]
    org.eclipse.jst.ws.axis.creation.ui (0.7.0) "Webservice Axis Creation UI" [Installed]
    org.eclipse.jst.ws.consumption (0.7.0) "Web Services Consumption" [Installed]
    org.eclipse.jst.ws.consumption.ui (0.7.0) "Web Services Consumption Graphical User Interface" [Installed]
    org.eclipse.jst.ws.consumption.ui (0.7.1) "Web Services Consumption Graphical User Interface" [Installed]
    org.eclipse.jst.ws.creation.ejb.ui (0.7.0) "Web Services Creation EJB Graphical User Interface" [Installed]
    org.eclipse.jst.ws.creation.ui (0.7.0) "Web Services Creation Graphical User Interface" [Installed]
    org.eclipse.jst.ws.creation.ui (0.7.1) "Web Services Creation Graphical User Interface" [Installed]
    org.eclipse.jst.ws.uddiregistry (0.7.0) "Web Services Universal Description Discovery and Integration Registry" [Installed]
    org.eclipse.jst.ws.ui (0.7.0) "Web Services Graphical User Interface" [Installed]
    org.eclipse.jst.ws.ui (0.7.1) "Web Services Graphical User Interface" [Installed]
    org.eclipse.ltk.core.refactoring (3.1.0) "Refactoring Core" [Active]
    org.eclipse.ltk.ui.refactoring (3.1.0) "Refactoring UI" [Active]
    org.eclipse.osgi (3.1.0) "OSGi System Bundle" [Active]
    org.eclipse.osgi.services (3.0.0) "OSGi Release 3 Services" [Resolved]
    org.eclipse.osgi.util (3.0.0) "OSGi R3 Utility Classes" [Resolved]
    org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment" [Resolved]
    org.eclipse.pde.build (3.1.0) "Plug-in Development Environment Build Support" [Resolved]
    org.eclipse.pde.core (3.1.0) "Plug-in Development Core" [Resolved]
    org.eclipse.pde.doc.user (3.1.0) "Eclipse Plug-in Development User Guide" [Resolved]
    org.eclipse.pde.junit.runtime (3.1.0) "PDE JUnit Plug-in Test" [Resolved]
    org.eclipse.pde.runtime (3.1.0) "Plug-in Development Environment Runtime" [Resolved]
    org.eclipse.pde.source (3.1.0) "Eclipse Plug-in Development Environment Developer Resources" [Resolved]
    org.eclipse.pde.ui (3.1.0) "Plug-in Development UI" [Resolved]
    org.eclipse.platform (3.1.0) "Eclipse Platform" [Resolved]
    org.eclipse.platform.doc.isv (3.1.0) "Eclipse Platform Plug-in Developer Guide" [Resolved]
    org.eclipse.platform.doc.user (3.1.0) "Eclipse Workbench User Guide" [Resolved]
    org.eclipse.platform.source (3.1.0) "Eclipse Platform Plug-in Developer Resources" [Resolved]
    org.eclipse.platform.source.win32.win32.x86 (3.1.0) "Eclipse Platform Plug-in Developer Resources" [Resolved]
    org.eclipse.sdk (3.1.0) "Eclipse Project SDK" [Resolved]
    org.eclipse.search (3.1.0) "Search Support" [Active]
    org.eclipse.swt (3.1.0) "Standard Widget Toolkit" [Resolved]
    org.eclipse.swt.win32 (3.1.0) "Standard Widget Toolkit for Windows" [Resolved]
    org.eclipse.team.core (3.1.0) "Team Support Core" [Active]
    org.eclipse.team.cvs.core (3.1.0) "CVS Team Provider Core" [Resolved]
    org.eclipse.team.cvs.ssh (3.1.0) "CVS SSH Core" [Resolved]
    org.eclipse.team.cvs.ssh2 (3.1.0) "CVS SSH2" [Resolved]
    org.eclipse.team.cvs.ui (3.1.0) "CVS Team Provider UI" [Resolved]
    org.eclipse.team.ui (3.1.0) "Team Support UI" [Active]
    org.eclipse.text (3.1.0) "Text" [Active]
    org.eclipse.tomcat (4.1.30) "Tomcat Wrapper" [Resolved]
    org.eclipse.ui (3.1.0) "Eclipse UI" [Active]
    org.eclipse.ui.cheatsheets (3.0.0) "Cheat Sheets" [Resolved]
    org.eclipse.ui.console (3.1.0) "Console" [Resolved]
    org.eclipse.ui.editors (3.1.0) "Default Text Editor" [Active]
    org.eclipse.ui.externaltools (3.1.0) "External Tools" [Active]
    org.eclipse.ui.forms (3.0.0) "Eclipse Forms" [Resolved]
    org.eclipse.ui.ide (3.1.0) "Eclipse IDE UI" [Active]
    org.eclipse.ui.intro (3.0.0) "Intro Plugin" [Resolved]
    org.eclipse.ui.presentations.r21 (3.1.0) "R21 Presentation Plug-in" [Resolved]
    org.eclipse.ui.views (3.1.0) "Views" [Active]
    org.eclipse.ui.win32 (3.1.0) "Win32 fragment" [Resolved]
    org.eclipse.ui.workbench (3.1.0) "Workbench" [Active]
    org.eclipse.ui.workbench.compatibility (3.1.0) "Workbench Compatibility" [Resolved]
    org.eclipse.ui.workbench.texteditor (3.1.0) "Text Editor Framework" [Active]
    org.eclipse.update.configurator (3.0.0) "Install/Update Configurator" [Active]
    org.eclipse.update.core (3.0.0) "Install/Update Core" [Active]
    org.eclipse.update.core.win32 (3.0.0) "Install/Update Core for Windows" [Resolved]
    org.eclipse.update.scheduler (3.0.0) "Automatic Updates Scheduler" [Active]
    org.eclipse.update.ui (3.0.0) "Install/Update UI" [Resolved]
    org.eclipse.wst (0.7.0) "Web Standard Tools" [Resolved]
    org.eclipse.wst.command.env (0.7.0) "Environment Command Framework (headless)" [Resolved]
    org.eclipse.wst.command.env.core (0.7.0) "Environment Command Framework (core)" [Resolved]
    org.eclipse.wst.command.env.ui (0.7.0) "Environment Command Framework (GUI)" [Resolved]
    org.eclipse.wst.common.emf (0.7.0) "EMF Utilities" [Installed]
    org.eclipse.wst.common.emfworkbench.integration (0.7.0) "EMF Workbench Edit Plug-in" [Installed]
    org.eclipse.wst.common.frameworks (0.7.0) "org.eclipse.wst.common.frameworks" [Installed]
    org.eclipse.wst.common.frameworks.ui (0.7.0) "WTP UI Plug-in" [Installed]
    org.eclipse.wst.common.modulecore (0.7.0) "Modulecore Plug-in" [Installed]
    org.eclipse.wst.common.navigator.views (0.7.0) "Common Navigator View" [Resolved]
    org.eclipse.wst.common.navigator.workbench (0.7.0) "Navigator Workbench Components" [Installed]
    org.eclipse.wst.common.snippets (0.7.0) "Snippets View" [Resolved]
    org.eclipse.wst.common.ui (0.7.0) "Eclipse Base UI extensions" [Resolved]
    org.eclipse.wst.common.ui.properties (0.7.0) "Common Properties UI" [Resolved]
    org.eclipse.wst.common.uriresolver (0.7.0) "org.eclipse.wst.common.uriresolver" [Resolved]
    org.eclipse.wst.css.core (0.7.0) "Structured Source CSS Model" [Installed]
    org.eclipse.wst.css.ui (0.7.0) "SSE CSS Source Editor" [Installed]
    org.eclipse.wst.doc.user (0.7.0) "Web Standard Tools Help User Doc Plug-in" [Resolved]
    org.eclipse.wst.dtd.core (0.7.0) "Structured Source DTD Core" [Installed]
    org.eclipse.wst.dtd.ui (0.7.0) "SSE DTD Source Editor" [Installed]
    org.eclipse.wst.html.core (0.7.0) "Structured Source HTML Model" [Installed]
    org.eclipse.wst.html.standard.dtds (0.7.0) "Known DTDs" [Installed]
    org.eclipse.wst.html.ui (0.7.0) "HTML UI Source Editor" [Installed]
    org.eclipse.wst.internet.cache (0.7.0) "Cache URI Resolver Plug-in" [Resolved]
    org.eclipse.wst.internet.monitor.core (0.7.0) "Monitor" [Resolved]
    org.eclipse.wst.internet.monitor.ui (0.7.0) "TCP/IP Monitor" [Resolved]
    org.eclipse.wst.internet.proxy (0.7.0) "Internet Proxy Preferences" [Active]
    org.eclipse.wst.javascript.core (0.7.0) "Structured Source JavaScript Model" [Resolved]
    org.eclipse.wst.javascript.ui (0.7.0) "SSE JavaScript Source Editor" [Installed]
    org.eclipse.wst.rdb.connection.ui (0.7.0) "RDB Connection.ui" [Installed]
    org.eclipse.wst.rdb.connection.ui (0.7.1) "RDB Connection.ui" [Installed]
    org.eclipse.wst.rdb.core (0.7.0) "RDB Core" [Resolved]
    org.eclipse.wst.rdb.core.ui (0.7.0) "Core UI plugin" [Installed]
    org.eclipse.wst.rdb.core.ui (0.7.1) "Core UI plugin" [Installed]
    org.eclipse.wst.rdb.data.core (0.7.0) "Data Core Plugin" [Installed]
    org.eclipse.wst.rdb.data.ui (0.7.0) "Data UI Plugin" [Installed]
    org.eclipse.wst.rdb.dbdefinition.db2.iseries (1.0.0) "DB2 UDB iSeries Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.db2.luw (0.7.0) "DB2 UDB Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.db2.zseries (0.7.0) "DB2 UDB Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.derby (0.7.0) "IBM Cloudscape Database Definition" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.informix (0.7.0) "Informix Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.mysql (0.7.0) "DBDefinition Mysql Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.oracle (0.7.0) "Oracle Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.sqlserver (0.7.0) "SQL Server Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.dbdefinition.sybase (0.7.0) "Sybase Database Definition Plug-in" [Resolved]
    org.eclipse.wst.rdb.derby (0.7.0) "RDB Derby Plug-in" [Resolved]
    org.eclipse.wst.rdb.derby.ui (0.7.0) "RDB Derby Ui Plug-in" [Installed]
    org.eclipse.wst.rdb.fe.ui (0.7.0) "FE Ui Plug-in" [Installed]
    org.eclipse.wst.rdb.fe.ui.actions (0.7.0) "FE Ui Actions Plug-in" [Installed]
    org.eclipse.wst.rdb.models.dbdefinition (0.7.0) "DBDefinition Model" [Resolved]
    org.eclipse.wst.rdb.models.sql (0.7.0) "SQLModel Plug-in" [Resolved]
    org.eclipse.wst.rdb.models.sql.edit (0.7.0) "SQLModel Edit Plug-in" [Resolved]
    org.eclipse.wst.rdb.mysql (0.7.0) "RDB Mysql Plug-in" [Resolved]
    org.eclipse.wst.rdb.outputview (0.7.0) "Data Output Plug-in" [Installed]
    org.eclipse.wst.rdb.server.extensions (0.7.0) "Server Explorer Extensions Plug-in" [Installed]
    org.eclipse.wst.rdb.server.ui (0.7.0) "Server Explorer plugin" [Installed]
    org.eclipse.wst.rdb.server.ui (0.7.1) "Server Explorer plugin" [Installed]
    org.eclipse.wst.rdb.sqleditor (0.7.0) "SQL Source Editor Plugin" [Installed]
    org.eclipse.wst.rdb.sqlscrapbook (0.7.0) "Sqlscrapbook Plug-in" [Installed]
    org.eclipse.wst.server.core (0.7.0) "Server Core" [Resolved]
    org.eclipse.wst.server.ui (0.7.0) "Server UI" [Installed]
    org.eclipse.wst.sse.core (0.7.0) "Structured Text Model" [Resolved]
    org.eclipse.wst.sse.ui (0.7.0) "Structured Source Editor" [Installed]
    org.eclipse.wst.validation (0.7.0) "Validation Framework" [Installed]
    org.eclipse.wst.validation.ui (0.7.0) "Validation Framework UI" [Installed]
    org.eclipse.wst.web (0.7.0) "Simple Web Plug-in" [Installed]
    org.eclipse.wst.web.ui (0.7.0) "Simple Web UI Plug-in" [Installed]
    org.eclipse.wst.ws (0.7.0) "Web Services" [Resolved]
    org.eclipse.wst.ws.explorer (0.7.0) "Web Services Explorer" [Installed]
    org.eclipse.wst.ws.explorer (0.7.1) "Web Services Explorer" [Resolved]
    org.eclipse.wst.ws.parser (0.7.0) "Web Services Description Parser" [Resolved]
    org.eclipse.wst.ws.ui (0.7.0) "Web Services UI" [Resolved]
    org.eclipse.wst.wsdl (0.7.0) "WSDL Model" [Resolved]
    org.eclipse.wst.wsdl.ui (0.7.0) "WSDL Editor" [Installed]
    org.eclipse.wst.wsdl.ui (0.7.1) "WSDL Editor" [Installed]
    org.eclipse.wst.wsdl.validation (0.7.0) "WSDL Validator" [Installed]
    org.eclipse.wst.wsi (0.7.0) "WSI Conformance Tools" [Installed]
    org.eclipse.wst.wsi.ui (0.7.0) "Soap Monitor" [Installed]
    org.eclipse.wst.xml.core (0.7.0) "Structured Source XML Model" [Installed]
    org.eclipse.wst.xml.core (0.7.1) "Structured Source XML Model" [Installed]
    org.eclipse.wst.xml.ui (0.7.0) "XML UI Plugin" [Installed]
    org.eclipse.wst.xml.ui (0.7.1) "XML UI Plugin" [Installed]
    org.eclipse.wst.xsd.core (0.7.0) "XSD Core Plugin" [Installed]
    org.eclipse.wst.xsd.ui (0.7.0) "XML Schema Editor" [Installed]
    org.eclipse.wst.xsd.ui (0.7.1) "XML Schema Editor" [Installed]
    org.eclipse.xsd (2.1.0) "XML Schema Infoset Model (XSD)" [Resolved]
    org.eclipse.xsd.ecore.importer (2.1.0) "XML Schema Importer for EMF" [Resolved]
    org.eclipse.xsd.edit (2.1.0) "XML Schema Edit Framework" [Resolved]
    org.eclipse.xsd.editor (2.1.0) "XML Schema Editor" [Resolved]
    org.jboss.ide.eclipse.serverdefinitions (0.7.0) "Generic server example definitions" [Installed]
    org.junit (3.8.1) "JUnit Testing Framework" [Resolved]
    org.objectweb.lomboz.common.launcher.ant (3.1.0) "Ant Launcher Plug-in" [Resolved]
    org.objectweb.lomboz.product (1.0.0) "Lomboz Plug-in" [Resolved]
    org.objectweb.lomboz.serverdefinitions (1.0.0) "Lomboz server definitions" [Installed]
    org.objectweb.lomboz.ws.axis (3.1.0) "WTP Axis Plug-in" [Resolved]
    org.objectweb.lomboz.xdoclet.codeassist (1.0.0) "JOnAS XDoclet Codeassist Plug-in" [Installed]
    org.springframework.ide.eclipse (1.2.2) "Spring IDE" [Resolved]
    org.springframework.ide.eclipse.beans.core (1.2.2) "Spring IDE Beans Core" [Active]
    org.springframework.ide.eclipse.beans.ui (1.2.2) "Spring IDE Beans UI" [Active]
    org.springframework.ide.eclipse.beans.ui.doc (1.2.1) "Spring IDE Beans Documentation" [Resolved]
    org.springframework.ide.eclipse.beans.ui.graph (1.2.1) "Spring IDE Beans Graph" [Resolved]
    org.springframework.ide.eclipse.cor

    Hi,
    Please clarify the following:
    * "X: is a network drive, but it's actually a network drive on my machine." - Is "X" a mapped drive to one of your shared folder on network?
    * What is the project directory structure with respect to WEB-INF/web.xml? Are you able to see the three pages (from web & pages folder) in NitroX Editor?
    * Does the modified content appear in "Design view" of index.jsp upon restarting NitroX?
    Ex:
    - modify one of the pages in "web" folder > save the file (alert appears)
    - restart NitroX, does index.jsp display the modified content of included page?
    * If possible please send the test case project which exhibits the behavior to [email protected]
    Thanks,
    M7 Support

  • Error writing path into a text file

    Latest edit to my text edit script is trying to remember the last opened file using a .txt "preference" file in a script bundle.
    Before I click run I edit the Pref file and put Default. I then click Open last. It then does what it should (alot like my other post) but gets an error at the last write in the script, writing the file path to the pref file. This is taken from the event viewer:
    write alias "Macintosh HD:Users:Richard:Documents:Other Text Files:Untitled.txt" to file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Prefs:Save Location Pref.txt" as text
    Result:
    error "Can’t make alias \"Macintosh HD:Users:Richard:Documents:Other Text Files:Untitled.txt\" into type string." number -1700 from alias "Macintosh HD:Users:Richard:Documents:Other Text Files:Untitled.txt" to string
    Script here:
    display dialog "Open last saved or choose file" buttons {"Open last", "Open other"} default button 2
    if button returned of result is "Open last" then
    set val1 to (read POSIX file "/Users/Richard/Library/Scripts/Richard's Text Editor 3.scptd/Contents/Resources/Prefs/Save Location Pref.txt")
    if val1 is "Default" then
    EditFile("no")
    else
    EditFile(val1)
    end if
    else
    EditFile("no")
    end if
    on EditFile(val2)
    if val2 is "no" then
    set val3 to (choose file with prompt "Please select a .txt file:
    To save a text file as .txt in TextEdit, click 'Make Plain Text' in the Format menu and save the file.")
    --Get file path.
    else
    set val3 to val2
    end if
    if (get eof val3) is 0 then --Read doesn't like eof (end of file) to be 0 bytes.
    set val4 to ""
    else
    set val4 to read val3 --Read file before it gets erased.
    end if
    open for access val3 with write permission --Open file.
    set eof val3 to 0 --Erase file.
    repeat
    display dialog "Edit your text." default answer val4 buttons {"Revert", "Save"}
    set {val5, val6} to {text returned of result, button returned of result}
    if val6 is "Save" then
    write val5 to val3
    exit repeat
    else
    write val4 to val3
    end if
    end repeat
    --Write to file giving old data as default (to give the same affect as as read and edit).
    close access val3
    open for access POSIX file "/Users/Richard/Library/Scripts/Richard's Text Editor 3.scptd/Contents/Resources/Prefs/Save Location Pref.txt" with write permission
    set eof POSIX file "/Users/Richard/Library/Scripts/Richard's Text Editor 3.scptd/Contents/Resources/Prefs/Save Location Pref.txt" to 0
    write val3 to POSIX file "/Users/Richard/Library/Scripts/Richard's Text Editor 3.scptd/Contents/Resources/Prefs/Save Location Pref.txt" as text
    close access POSIX file "/Users/Richard/Library/Scripts/Richard's Text Editor 3.scptd/Contents/Resources/Prefs/Save Location Pref.txt"
    end EditFile
    Thanks, I can guess this is a simple fix like the others.

    Hmmm.
    First I checked it was all OK without POSIX and it works:
    display dialog "Open last saved or choose file" buttons {"Open last", "Open other"} default button 2
    if button returned of result is "Open last" then
    set val1 to alias (read file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt")
    --Read pref file to find out path of last edited file.
    if val1 is "Default" then
    EditFile("no")
    else
    EditFile(val1)
    end if
    else
    EditFile("no")
    end if
    on EditFile(val2)
    if val2 is "no" then
    set val3 to (choose file with prompt "Please select a .txt file:
    To save a text file as .txt in TextEdit, click 'Make Plain Text' in the Format menu and save the file.")
    --Get file path.
    else
    set val3 to val2
    end if
    if (get eof val3) is 0 then --Read doesn't like eof (end of file) to be 0 bytes.
    set val4 to ""
    else
    set val4 to read val3 --Read file before it gets erased.
    end if
    open for access val3 with write permission --Open file.
    repeat
    set eof val3 to 0 --Erase file.
    display dialog "Edit your text." default answer val4 buttons {"Revert", "Save"}
    set {val5, val6} to {text returned of result, button returned of result}
    if val6 is "Save" then
    write val5 to val3
    exit repeat
    else
    write val4 to val3
    end if
    end repeat
    --Write to file giving old data as default (to give the same affect as as read and edit).
    close access val3
    open for access file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" with write permission
    set eof file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" to 0
    write (val3 as string) to file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" as text
    close access file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt"
    --Save path of edited file to pref file.
    end EditFile
    But change that 3rd line to:
    set val1 to alias (read file (path to resource "Save Location Pref.txt"))
    gets:
    Can’t make file (alias "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt") into type file.
    P.S. Sorry bout question in answered post again.

  • Creating and EOF loop

    hi,
    newbie
    I am trying to read in from a text file line by line, I want to do this with a while loop to tie in with the rest of my project.
    I wonder if anyone would be able to tell me how to create this loop, i have tried using the code below but have no clue about creating one of these
    while (file != EOF)
    file is a variable containing the path of the desired file and i thought that EOF meant End Of File, this is the only part i need and you help would be much appreciated
    Dave

    You need to find out about I/O and streams etc. which I find quite awkward. If you just want to read a text file a line at a time:
    import java.io.*;
    String s = "";
    try {
    BufferedReader br = new BufferedReader(
                         new FileReader("yourFile.txt"));
       while (s!=null)
           s = br.readLine();
           System.out.println(s);
        }//end while
    catch (Exception e)
       System.out.println("error");
    }I think that will work

  • Set label colour to files in loop.

    This Script works in part to open a folder select the image to create a text document of the files, at the same time I would like to label them as red.
    set myFile to (Macintosh HD:Users:Matt:Desktop:
    SelectedImages.txt")
    open for access file myFile with write permission
    set eof file myFile to 0
    set resultFiles to (choose file with prompt "Choose Files" with multiple selections allowed)
    set tc to (count resultFiles)
    repeat with i from 1 to tc
      set theNfile to (item i of resultFiles) & return
      write ((theNfile as list) as text) to file myFile
      log theNfile
      tell application "Finder"
      set label index of file (theNfile as text) to 2 --red
      end tell
    end repeat
    close access file myFile
    My end result is this
    Result:
    error "Finder got an error: Can’t set file \"Macintosh HD:Users:User:Desktop:Bits and bobs:DP GOOD:Untitled1.psd
    \" to 2." number -10006 from file "Macintosh HD:Users:User:Desktop:Bits and bobs:DP GOOD:Untitled1.psd
    yet run the line below on its own and it has no problems?
    tell application "Finder" to  set label index of file "StudioA:Users:StudioA:Desktop:Bits and bobs:DP GOOD:Untitled1.psd" to 2

    Hello
    Error -4960 is a generic error that tells little about what is wrong.
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h:  coreFoundationUnknownErr      = -4960
    Fortunately I can reproduce this error when I pass HFS path instead of POSIX path to the write_to_file() handler. So I guess you're doing it as well by replacing:
    my write_to_file("", myFile's POSIX path, {_append:false, _class:«class utf8»})
    with:
    my write_to_file("", myFile, {_append:false, _class:«class utf8»})
    when myFile is HFS path.
    If myFile is HFS path and the file at the path already exists, you may call the handler like this:
    my write_to_file("", (myFile as alias)'s POSIX path, {_append:false, _class:«class utf8»})
    If myFile does not exist yet, the above won't work because (myFile as alias) fails. In such case, you'd need to build myFile as POSIX path from the beginning.
    Having that said, here's a revised handler that seems to work with both HFS path and POSIX path under 10.6.8 although it does NOT conform to the definition of "open for access" and "close access" commands in OSAX dictionary. I do not like this sort of loose coding in undocumented way, but if it works for you and you're fine with the looseness, you may use it with due caution.
    on write_to_file(x, p, {_append:_append, _class:_class})
            anything x : anything to be written to output file
            string p : POSIX path or HFS path of output file
            boolean _append: true to append data, false to replace data
            type class _class: type class as which the data is written
        local fd
        try
            set fd to open for access (p) with write permission
            if not _append then set eof fd to 0
            write x as _class to fd starting at eof
            close access fd
        on error errs number errn
            try
                close access (p)
            end try
            error "write_to_file(): " & errs number errn
        end try
    end write_to_file
    Good luck,
    H

  • EOF Exception with Thread interrupts ?

    EOF file Exception for RandomAccess.readFully() call. All the parameters are valid.
    Is it possible/Any one seen to get EOF exception If another Thread interrupt the thread
    which is doing I/O(READ).
    I am running on SUN jdk131/Solaris8?
    Thanks
    -suresht

    Hint if working with threads on reading data from files just synchronize the methods, like
    public synchronized readData(...){...}
    if you do not do that a thread is reading and when it breaks down it will locks the method(in your case the file will not been closed and if a file is not closed it cannot be opened by another thread/method/object/whatever)

  • Show AppXray dependencies does not work for all projects

    I have three projects. One of them will display the appxray dependncies and the other two will not. When I select show dependencies, nothing happens. There is no logging inside the workshop m7.log.0 but the .log has the following. How do I get this to work?
    Config details follow logging.
    !MESSAGE Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
    !STACK 1
    org.eclipse.ui.PartInitException: Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:543)
         at org.eclipse.ui.internal.WorkbenchPage$6.run(WorkbenchPage.java:1746)
         at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:152)
         at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:28)
         at org.eclipse.swt.widgets.Display.syncExec(Display.java:3413)
         at org.eclipse.ui.internal.WorkbenchPage.getEditors(WorkbenchPage.java:1743)
         at com.m7.wide.eclipse.Util.activateEditor(Unknown Source)
         at com.m7.wide.eclipse.jstudio.A.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.AbstractEditor.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.AbstractPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.flow.FlowDesignPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.CompoundPane.requestFocus(Unknown Source)
         at com.m7.wide.doceditor.CompoundPane.setHidden(Unknown Source)
         at com.m7.wide.doceditor.MultiPaneEditor.activePaneChanged(Unknown Source)
         at com.m7.wide.eclipse.jstudio.PaneEditorPart.activate(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.A(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.pageChange(Unknown Source)
         at com.m7.wide.eclipse.jstudio.DynamicMultiPageEditor.createPages(Unknown Source)
         at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:241)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:609)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
         at org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
         at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2249)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:753)
         at org.eclipse.ui.ide.IDE.openEditor(IDE.java:697)
         at com.m7.wide.eclipse.Eclipse3WideEnv.openEditor(Unknown Source)
         at com.m7.wide.eclipse.EclipseWideEnv.openEditor(Unknown Source)
         at com.m7.wide.project.artifact.action.OpenAction.run(Unknown Source)
         at com.m7.wide.eclipse.jstudio.appexplorer.AppExplorerTreeViewer.open(Unknown Source)
         at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:741)
         at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
         at org.eclipse.core.runtime.Platform.run(Platform.java:783)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
         at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:739)
         at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:968)
         at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1067)
         at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:243)
         at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:238)
         at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:277)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
         at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
         at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
         at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
         at org.eclipse.core.launcher.Main.run(Main.java:973)
         at org.eclipse.core.launcher.Main.eclipse_main(Main.java:948)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:29)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    !SUBENTRY 1 org.eclipse.ui 4 0 2005-12-13 11:58:43.346
    !MESSAGE Warning: Detected recursive attempt by part com.m7.wide.eclipse.jstudio.DocEditor.jsp to create itself (this is probably, but not necessarily, a bug)
    *** Date: Tue Dec 13 12:48:19 PST 2005
    *** Platform Details:
    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20050929-0840
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\packages\Eclipse3.1\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    7b4_30
    -feature
    com.m7.nitrox
    -application
    org.eclipse.ui.ide.workbench
    -vm
    C:\WINDOWS\system32\javaw.exe
    eclipse.product=com.m7.nitrox
    eclipse.startTime=1134504472516
    eclipse.vm=C:\WINDOWS\system32\javaw.exe
    eclipse.vmargs=-Xms128M
    -Xmx512M
    -Dosgi.splashLocation=C:\packages\Workshop_for_Struts_3.0_471\Workshop\splash.bmp
    -jar
    C:\packages\Eclipse3.1\eclipse\startup.jar
    eof=eof
    file.encoding=Cp1252
    file.encoding.pkg=sun.io
    file.separator=\
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.class.path=C:\packages\Eclipse3.1\eclipse\startup.jar
    java.class.version=48.0
    java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\endorsed
    java.ext.dirs=C:\Program Files\Java\j2re1.4.2_04\lib\ext
    java.home=C:\Program Files\Java\j2re1.4.2_04
    java.io.tmpdir=C:\DOCUME~1\charris\LOCALS~1\Temp\
    java.library.path=C:\WINDOWS\system32;.;C:\WINDOWS\System32;C:\WINDOWS;C:\PROGRA~1\PVCS\vm\win32\bin;C:\PROGRA~1\PVCS\vm\common\bin\win32;C:\Program Files\Common Files\Software AG;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Attachmate\E!E2K\;C:\Magicsql\sqlany50\win;C:\Magicsql\netmap;c:\java\bin;c:\java\bin\pstools;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\packages\apache-ant-1.6.2\bin;C:\Program Files\Novell\ZENworks\;C:\packages\jwsdp-1.6\jwsdp-shared\bin;Z:.;Y:.;
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.4.2_04-b05
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.4
    java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.4.2_04
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.4.2_04-b05
    line.separator=
    m7.launcher=true
    org.eclipse.jdt.debug.ui.scrapbookActive=false
    org.osgi.framework.bootdelegation=*
    org.osgi.framework.executionenvironment=J2SE-1.4
    org.osgi.framework.language=en
    org.osgi.framework.os.name=WindowsXP
    org.osgi.framework.os.version=5.1
    org.osgi.framework.processor=x86
    org.osgi.framework.system.packages=javax.accessibility,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.3.0
    org.osgi.supports.framework.extension=true
    org.w3c.css.sac.parser=com.steadystate.css.parser.SACParser
    org.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
    os.arch=x86
    os.name=Windows XP
    os.version=5.1
    osgi.arch=x86
    osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start
    osgi.bundlestore=c:\packages\Eclipse3.1\eclipse\configuration\org.eclipse.osgi\bundles
    osgi.configuration.area=file:/c:/packages/Eclipse3.1/eclipse/configuration/
    osgi.framework=file:/c:/packages/Eclipse3.1/eclipse/plugins/org.eclipse.osgi_3.1.1.jar
    osgi.framework.beginningstartlevel=1
    osgi.framework.shape=jar
    osgi.framework.version=3.1.1
    osgi.install.area=file:/c:/packages/Eclipse3.1/eclipse/
    osgi.instance.area=file:/C:/packages/Eclipse3.1/eclipse/workspace/
    osgi.instance.area.default=file:/C:/Documents and Settings/charris/workspace/
    osgi.logfile=C:\packages\Eclipse3.1\eclipse\workspace\.metadata\.log
    osgi.manifest.cache=c:\packages\Eclipse3.1\eclipse\configuration\org.eclipse.osgi\manifests
    osgi.nl=en_US
    osgi.os=win32
    osgi.splashLocation=C:\packages\Workshop_for_Struts_3.0_471\Workshop\splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath=c:\packages\Eclipse3.1\eclipse\plugins
    osgi.ws=win32
    path.separator=;
    sun.arch.data.model=32
    sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_04\lib\rt.jar;C:\Program Files\Java\j2re1.4.2_04\lib\i18n.jar;C:\Program Files\Java\j2re1.4.2_04\lib\sunrsasign.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jsse.jar;C:\Program Files\Java\j2re1.4.2_04\lib\jce.jar;C:\Program Files\Java\j2re1.4.2_04\lib\charsets.jar;C:\Program Files\Java\j2re1.4.2_04\classes
    sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_04\bin
    sun.cpu.endian=little
    sun.cpu.isalist=pentium i486 i386
    sun.io.unicode.encoding=UnicodeLittle
    sun.java2d.fontpath=
    sun.os.patch.level=Service Pack 1
    user.country=US
    user.dir=C:\packages\Eclipse3.1\eclipse
    user.home=C:\Documents and Settings\charris
    user.language=en
    user.name=CHarris
    user.timezone=America/Los_Angeles
    user.variant=
    vendor=Apache Software Foundation
    vendor-url=http://xml.apache.org/xalan-j
    version=2.4.1
    *** Features:
    com.m7.nitrox (3.0.0) "Workshop"
    org.eclipse.emf (2.1.1) "Eclipse Modeling Framework (EMF)"
    org.eclipse.emf.doc (2.1.1) "Eclipse Modeling Framework (EMF) Programmers Guide"
    org.eclipse.emf.ecore.sdo (2.1.1) "EMF Service Data Objects (SDO)"
    org.eclipse.emf.ecore.sdo.doc (2.1.1) "EMF Service Data Objects (SDO) Programmers Guide"
    org.eclipse.emf.ecore.sdo.source (2.1.1) "EMF Service Data Objects (SDO) Source"
    org.eclipse.emf.examples (2.1.0) "Eclipse Modeling Framework (EMF) Examples"
    org.eclipse.emf.source (2.1.1) "Eclipse Modeling Framework (EMF) Source"
    org.eclipse.gef (3.1.1) "Graphical Editing Framework"
    org.eclipse.gef.examples (3.1.1) "GEF Examples"
    org.eclipse.gef.sdk (3.1.1) "Graphical Editing Framework Developer Resources"
    org.eclipse.gef.source (3.1.1) "Graphical Editing Framework Developer Resources"
    org.eclipse.jdt (3.1.1) "Eclipse Java Development Tools"
    org.eclipse.jdt.source (3.1.1) "Eclipse Java Development Tools SDK"
    org.eclipse.jem (1.1.0.1) "Java EMF Model"
    org.eclipse.jem.sdk (1.1.0.1) "Java EMF Model SDK"
    org.eclipse.jem.source (1.1.0.1) "Java EMF Model Source"
    org.eclipse.jst (0.7.1) "J2EE Standard Tools"
    org.eclipse.jst.sdk (0.7.1) "J2EE Standard Tools SDK"
    org.eclipse.pde (3.1.1) "Eclipse Plug-in Development Environment"
    org.eclipse.pde.source (3.1.1) "Eclipse Plug-in Development Environment Developer Resources"
    org.eclipse.platform (3.1.1) "Eclipse Platform"
    org.eclipse.platform.source (3.1.1) "Eclipse Platform Plug-in Developer Resources"
    org.eclipse.rcp (3.1.1) "Eclipse RCP"
    org.eclipse.rcp.source (3.1.1) "Eclipse RCP Plug-in Developer Resources"
    org.eclipse.sdk (3.1.1) "Eclipse Project SDK"
    org.eclipse.sdk.examples (3.0.1) "Eclipse SDK Examples"
    org.eclipse.team.extras (3.0.0) "Eclipse FTP and WebDAV Support"
    org.eclipse.ve (1.1.0.1) "Visual Editor"
    org.eclipse.ve.sdk (1.1.0.1) "Visual Editor SDK"
    org.eclipse.ve.source (1.1.0.1) "Visual Editor Source"
    org.eclipse.wst (0.7.1) "Web Standard Tools"
    org.eclipse.wst.sdk (0.7.1) "Web Standard Tools SDK"
    org.eclipse.xsd (2.1.1) "XML Schema Infoset Model (XSD)"
    org.eclipse.xsd.doc (2.1.1) "XML Schema Infoset Model (XSD) Programmers Guide"
    org.eclipse.xsd.source (2.1.1) "XML Schema Infoset Model (XSD) Source"
    *** Plug-in Registry:
    com.ibm.etools.emf.event (3.0.0.1) "Event Model" [Resolved]
    com.m7.nitrox (3.0.0) "Workshop" [Active]
    com.m7.nitrox.database (3.0.0) "Workshop Database" [Resolved]
    com.m7.nitrox.debugger (3.0.0) "Workshop JSP Debugger" [Resolved]
    com.m7.nitrox.eclipse3.0 (3.0.0) "Workshop Eclipse 3.0" [Resolved]
    com.m7.nitrox.ejb3 (3.0.0) "Workshop EJB3 Persistence" [Resolved]
    com.m7.nitrox.hibernate (3.0.0) "Workshop Hibernate" [Resolved]
    com.m7.nitrox.jsf (3.0.0) "Workshop JSF" [Resolved]
    com.m7.nitrox.jsp (3.0.0) "Workshop JSP" [Resolved]
    com.m7.nitrox.jstl (3.0.0) "Workshop JSTL" [Resolved]
    com.m7.nitrox.jwebapp (3.0.0) "Workshop Java Web Application" [Resolved]
    com.m7.nitrox.orm (3.0.0) "Workshop ORM" [Resolved]
    com.m7.nitrox.struts (3.0.0) "Workshop Struts" [Resolved]
    org.apache.ant (1.6.5) "Apache Ant" [Active]
    org.apache.axis (1.2.1) "Axis121 Plug-in" [Resolved]
    org.apache.lucene (1.4.3) "Apache Lucene" [Resolved]
    org.apache.wsil4j (1.0.0) "Apache WSIL4J 1.0" [Resolved]
    org.apache.xerces (2.7.0) "Xerces 2.7.0" [Resolved]
    org.eclipse.ant.core (3.1.1) "Ant Build Tool Core" [Resolved]
    org.eclipse.ant.ui (3.1.1) "Ant UI" [Active]
    org.eclipse.compare (3.1.1) "Compare Support" [Resolved]
    org.eclipse.compare.examples (3.0.0) "Compare Example" [Resolved]
    org.eclipse.compare.examples.xml (3.0.0) "XML Compare Support" [Resolved]
    org.eclipse.core.boot (3.1.0) "Core Boot" [Resolved]
    org.eclipse.core.commands (3.1.0) "Commands" [Active]
    org.eclipse.core.expressions (3.1.0) "Expression Language" [Active]
    org.eclipse.core.filebuffers (3.1.0) "File Buffers" [Active]
    org.eclipse.core.resources (3.1.0) "Core Resource Management" [Active]
    org.eclipse.core.resources.compatibility (3.1.0) "Core Resource Management Compatibility Fragment" [Resolved]
    org.eclipse.core.resources.win32 (3.1.0) "Core Resource Management Win32 Fragment" [Resolved]
    org.eclipse.core.runtime (3.1.1) "Core Runtime" [Active]
    org.eclipse.core.runtime.compatibility (3.1.0) "Core Runtime Plug-in Compatibility" [Active]
    org.eclipse.core.variables (3.1.0) "Core Variables" [Resolved]
    org.eclipse.debug.core (3.1.0) "Debug Core" [Active]
    org.eclipse.debug.ui (3.1.1) "Debug UI" [Active]
    org.eclipse.draw2d (3.1.1) "Draw2d" [Resolved]
    org.eclipse.draw2d.doc.isv (3.1.1) "Draw2D Documentation" [Resolved]
    org.eclipse.emf (2.1.1) "Eclipse Modeling Framework (EMF)" [Resolved]
    org.eclipse.emf.activities (2.1.0) "EMF Activities" [Resolved]
    org.eclipse.emf.ant (2.1.0) "EMF Ant Tasks" [Resolved]
    org.eclipse.emf.codegen (2.1.0) "EMF Template Code Generator" [Resolved]
    org.eclipse.emf.codegen.ecore (2.1.0) "EMF Ecore Code Generation" [Resolved]
    org.eclipse.emf.codegen.ecore.ui (2.1.0) "EMF Ecore Code Generation UI" [Resolved]
    org.eclipse.emf.codegen.ui (2.1.0) "EMF Template Code Generator UI" [Resolved]
    org.eclipse.emf.common (2.1.0) "EMF Common" [Active]
    org.eclipse.emf.common.ui (2.1.0) "EMF Common UI" [Resolved]
    org.eclipse.emf.commonj.sdo (2.1.0) "CommonJ SDO" [Resolved]
    org.eclipse.emf.doc (2.1.1) "Eclipse Modeling Framework (EMF) Programmers Guide" [Resolved]
    org.eclipse.emf.ecore (2.1.0) "EMF Ecore" [Active]
    org.eclipse.emf.ecore.change (2.1.0) "EMF Ecore Change Model" [Resolved]
    org.eclipse.emf.ecore.change.edit (2.1.0) "EMF Ecore Change Edit Support" [Resolved]
    org.eclipse.emf.ecore.edit (2.1.1) "EMF Ecore Edit Support" [Resolved]
    org.eclipse.emf.ecore.editor (2.1.0) "Sample Ecore Editor" [Resolved]
    org.eclipse.emf.ecore.sdo (2.1.1) "EMF Service Data Objects (SDO)" [Resolved]
    org.eclipse.emf.ecore.sdo.doc (2.1.1) "EMF Service Data Objects (SDO) Programmers Guide" [Resolved]
    org.eclipse.emf.ecore.sdo.edit (2.1.0) "EMF Service Data Objects (SDO) Edit Support" [Resolved]
    org.eclipse.emf.ecore.sdo.editor (2.1.0) "EMF Service Data Objects (SDO) Editor" [Resolved]
    org.eclipse.emf.ecore.sdo.source (2.1.1) "EMF Service Data Objects (SDO) Source" [Resolved]
    org.eclipse.emf.ecore.xmi (2.1.0) "EMF XMI" [Active]
    org.eclipse.emf.edit (2.1.1) "EMF Edit" [Resolved]
    org.eclipse.emf.edit.ui (2.1.0) "EMF Edit UI" [Resolved]
    org.eclipse.emf.examples (2.1.0) "Eclipse Modeling Framework (EMF) Examples" [Resolved]
    org.eclipse.emf.importer (2.1.0) "EMF Model Import Support" [Resolved]
    org.eclipse.emf.importer.ecore (2.1.0) "EMF Ecore Importer" [Resolved]
    org.eclipse.emf.importer.java (2.1.1) "EMF Annotated Java Importer" [Resolved]
    org.eclipse.emf.importer.rose (2.1.1) "EMF Rose Importer" [Resolved]
    org.eclipse.emf.java (2.1.0) "EMF Java" [Resolved]
    org.eclipse.emf.java.edit (2.1.0) "EMF Java Edit" [Resolved]
    org.eclipse.emf.java.editor (2.1.0) "EMF Java Editor" [Resolved]
    org.eclipse.emf.mapping (2.1.0) "EMF Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore (2.1.0) "Ecore to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2ecore.editor (2.1.0) "Ecore to Ecore Mapping Editor" [Resolved]
    org.eclipse.emf.mapping.ecore2xml (2.1.0) "Ecore to XML Mapping" [Resolved]
    org.eclipse.emf.mapping.ecore2xml.ui (2.1.1) "Ecore to XML Mapping UI" [Resolved]
    org.eclipse.emf.mapping.ui (2.1.0) "EMF Mapping UI" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore (2.1.0) "XSD to Ecore Mapping" [Resolved]
    org.eclipse.emf.mapping.xsd2ecore.editor (2.1.0) "XSD to Ecore Mapping Editor" [Resolved]
    org.eclipse.emf.source (2.1.1) "Eclipse Modeling Framework (EMF) Source" [Resolved]
    org.eclipse.gef (3.1.1) "Graphical Editing Framework" [Resolved]
    org.eclipse.gef.doc.isv (3.1.1) "Graphical Editing Framework Documentation" [Resolved]
    org.eclipse.gef.examples.flow (3.1.1) "GEF Flow Editor Example" [Resolved]
    org.eclipse.gef.examples.logic (3.1.1) "GEF Logic Editor Example" [Resolved]
    org.eclipse.gef.examples.shapes (3.1.1) "GEF Shape Editor Example" [Resolved]
    org.eclipse.gef.examples.source (3.1.1) "GEF Examples" [Resolved]
    org.eclipse.gef.examples.text (3.1.1) "GEF Text Editor Example" [Resolved]
    org.eclipse.gef.source (3.1.1) "Graphical Editing Framework Developer Resources" [Resolved]
    org.eclipse.help (3.1.0) "Help System Core" [Active]
    org.eclipse.help.appserver (3.1.0) "Help Application Server" [Resolved]
    org.eclipse.help.base (3.1.0) "Help System Base" [Resolved]
    org.eclipse.help.examples.ex1 (3.0.0) "Online Help Sample" [Resolved]
    org.eclipse.help.ui (3.1.1) "Help System UI" [Resolved]
    org.eclipse.help.webapp (3.1.0) "Help System Webapp" [Resolved]
    org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools" [Resolved]
    org.eclipse.jdt.core (3.1.1) "Java Development Tools Core" [Active]
    org.eclipse.jdt.debug (3.1.1) "JDI Debug Model" [Active]
    org.eclipse.jdt.debug.ui (3.1.1) "JDI Debug UI" [Active]
    org.eclipse.jdt.doc.isv (3.1.1) "Eclipse JDT Plug-in Developer Guide" [Resolved]
    org.eclipse.jdt.doc.user (3.1.1) "Eclipse Java Development User Guide" [Resolved]
    org.eclipse.jdt.junit (3.1.1) "Java Development Tools JUnit support" [Resolved]
    org.eclipse.jdt.junit.runtime (3.1.0) "Java Development Tools JUnit runtime support" [Resolved]
    org.eclipse.jdt.launching (3.1.0) "Java Development Tools Launching Support" [Active]
    org.eclipse.jdt.source (3.1.1) "Eclipse Java Development Tools SDK" [Resolved]
    org.eclipse.jdt.ui (3.1.1) "Java Development Tools UI" [Active]
    org.eclipse.jdt.ui.examples.projects (3.0.1) "Java Development Tools Example Projects" [Resolved]
    org.eclipse.jem (1.1.0.1) "Java EMF Model" [Resolved]
    org.eclipse.jem.beaninfo (1.1.0.1) "Java EMF Model BeanInfo (Introspection) Support" [Resolved]
    org.eclipse.jem.proxy (1.1.0.1) "Java EMF Model Proxy Support" [Resolved]
    org.eclipse.jem.sdk (1.1.0) "Java EMF Model SDK" [Resolved]
    org.eclipse.jem.source (1.1.0.1) "Java EMF Model Source" [Resolved]
    org.eclipse.jem.ui (1.1.0.1) "Java EMF Model UI" [Resolved]
    org.eclipse.jem.util (1.1.0) "Java EMF Model Utilities" [Installed]
    org.eclipse.jem.util (1.1.0.1) "Java EMF Model Utilities" [Active]
    org.eclipse.jem.workbench (1.1.0.1) "Java EMF Model Workbench Support" [Resolved]
    org.eclipse.jface (3.1.1) "JFace" [Active]
    org.eclipse.jface.text (3.1.1) "JFace Text" [Active]
    org.eclipse.jst (0.7.0) "J2EE Standard Tools" [Resolved]
    org.eclipse.jst.common.annotations.controller (0.7.1) "Annotation Controller Plug-in" [Resolved]
    org.eclipse.jst.common.annotations.core (0.7.0) "Annotation Core Plug-in" [Resolved]
    org.eclipse.jst.common.annotations.ui (0.7.0) "Ui Plug-in" [Resolved]
    org.eclipse.jst.common.frameworks (0.7.0) "Integration Plug-in" [Resolved]
    org.eclipse.jst.common.navigator.java (0.7.1) "Navigator Plug-in" [Resolved]
    org.eclipse.jst.ejb.ui (0.7.0) "WTP EJB UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee (0.7.1) "J2EE Component" [Resolved]
    org.eclipse.jst.j2ee.core (0.7.1) "J2EE Core Component" [Resolved]
    org.eclipse.jst.j2ee.ejb (0.7.0) "EJB component Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotation.model (0.7.0) "EJB Annotation Model Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.emitter (0.7.0) "EJB Emitter Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.ui (0.7.1) "EJB Annotations Ui Plug-in" [Resolved]
    org.eclipse.jst.j2ee.ejb.annotations.xdoclet (0.7.1) "Xdoclet Annotations Plug-in" [Resolved]
    org.eclipse.jst.j2ee.jca (0.7.0) "JCA Plug-in" [Resolved]
    org.eclipse.jst.j2ee.jca.ui (0.7.0) "WTP JCA UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee.navigator.ui (0.7.0) "J2EE Extensions to Common Navigator" [Resolved]
    org.eclipse.jst.j2ee.ui (0.7.1) "WTP J2EE UI Plug-in" [Resolved]
    org.eclipse.jst.j2ee.web (0.7.1) "Web Plug-in" [Resolved]
    org.eclipse.jst.j2ee.webservice (0.7.0) "Web Service Plug-in" [Resolved]
    org.eclipse.jst.j2ee.webservices.ui (0.7.0) "WTP Webservice UI Plug-in" [Resolved]
    org.eclipse.jst.jsp.core (0.7.0) "Structured Source JSP Model" [Installed]
    org.eclipse.jst.jsp.core (0.7.1) "Structured Source JSP Model" [Active]
    org.eclipse.jst.jsp.ui (0.7.0) "SSE JSP Source Editor" [Installed]
    org.eclipse.jst.jsp.ui (0.7.1) "SSE JSP Source Editor" [Active]
    org.eclipse.jst.server.core (0.7.0) "Java Server Support" [Resolved]
    org.eclipse.jst.server.generic.core (0.7.0) "Generic Server Plugin" [Resolved]
    org.eclipse.jst.server.generic.serverdefinitions (0.7.0) "Generic server example definitions" [Resolved]
    org.eclipse.jst.server.generic.ui (0.7.0) "Generic Server Plugin UI" [Resolved]
    org.eclipse.jst.server.geronimo.core (0.7.0) "Geronimo server support" [Resolved]
    org.eclipse.jst.server.geronimo.ui (0.7.0) "Geronimo server UI support" [Resolved]
    org.eclipse.jst.server.tomcat.core (0.7.0) "Apache Tomcat Support" [Resolved]
    org.eclipse.jst.server.tomcat.ui (0.7.0) "Apache Tomcat UI Support" [Resolved]
    org.eclipse.jst.server.ui (0.7.0) "Java Server UI Support" [Resolved]
    org.eclipse.jst.server.websphere.core (0.7.0) "WebSphere Generic Server Definition Core Plug-in" [Resolved]
    org.eclipse.jst.servlet.ui (0.7.1) "WTP Servlet UI Plug-in" [Resolved]
    org.eclipse.jst.source (0.7.1) "J2EE Standard Tools SDK" [Resolved]
    org.eclipse.jst.ws (0.7.1) "Web Services" [Resolved]
    org.eclipse.jst.ws.axis.consumption.core (0.7.0) "Web service Axis Consumption Core" [Resolved]
    org.eclipse.jst.ws.axis.consumption.ui (0.7.1) "Webservice Axis Consumption UI" [Resolved]
    org.eclipse.jst.ws.axis.creation.ui (0.7.0) "Webservice Axis Creation UI" [Resolved]
    org.eclipse.jst.ws.consumption (0.7.0) "Web Services Consumption" [Resolved]
    org.eclipse.jst.ws.consumption.ui (0.7.1) "Web Services Consumption Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.creation.ejb.ui (0.7.0) "Web Services Creation EJB Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.creation.ui (0.7.1) "Web Services Creation Graphical User Interface" [Resolved]
    org.eclipse.jst.ws.uddiregistry (0.7.0) "Web Services Universal Description Discovery and Integration Registry" [Resolved]
    org.eclipse.jst.ws.ui (0.7.1) "Web Services Graphical User Interface" [Resolved]
    org.eclipse.ltk.core.refactoring (3.1.0) "Refactoring Core" [Active]
    org.eclipse.ltk.ui.refactoring (3.1.1) "Refactoring UI" [Active]
    org.eclipse.osgi.services (3.1.1) "OSGi Release 3 Services" [Resolved]
    org.eclipse.osgi.util (3.1.1) "OSGi R3 Utility Classes" [Resolved]
    org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment" [Resolved]
    org.eclipse.pde.build (3.1.0) "Plug-in Development Environment Build Support" [Resolved]
    org.eclipse.pde.core (3.1.1) "Plug-in Development Core" [Resolved]
    org.eclipse.pde.doc.user (3.1.1) "Eclipse Plug-in Development User Guide" [Resolved]
    org.eclipse.pde.junit.runtime (3.1.0) "PDE JUnit Plug-in Test" [Resolved]
    org.eclipse.pde.runtime (3.1.1) "Plug-in Development Environment Runtime" [Resolved]
    org.eclipse.pde.source (3.1.1) "Eclipse Plug-in Development Environment Developer Resources" [Resolved]
    org.eclipse.pde.ui (3.1.1) "Plug-in Development UI" [Resolved]
    org.eclipse.platform (3.1.1) "Eclipse Platform" [Resolved]
    org.eclipse.platform.doc.isv (3.1.1) "Eclipse Platform Plug-in Developer Guide" [Resolved]
    org.eclipse.platform.doc.user (3.1.1) "Eclipse Workbench User Guide" [Resolved]
    org.eclipse.platform.source (3.1.1) "Eclipse Platform Plug-in Developer Resources" [Resolved]
    org.eclipse.platform.so

    What kind of projects are they (Struts/JSF/Hibernate)? Does the working project differ in any way with other two apps?
    What exactly is not working? Are they recognized by workshop as Struts/JSF/Hibernate app?
    Please send the .log to [email protected]

  • Building eclipse 3.1 on Solaris 10 x86

    I found an easy way to build eclipse on solaris x86, as followed:
    $ JAVA_HOME=/usr/j2se; export JAVA_HOME
    $ ANT_HOME=/home/compl/sfw/apache-ant-1.6.5; export ANT_HOME
    $ PATH=$ANT_HOME/bin:$PATH; export PATH
    $ mkdir -p ~/farm/eclipse-src
    $ cd ~/farm
    $ vi regexrename
    -----start create script regexrename-----
    -enter the following content:
    #!/bin/sh
    echo Renaming $1 to `echo $1 | sed $2`
    mv "$1" "`echo $1 | sed $2`"
    -save and quit vi
    -----end create script regexrename-----
    $ chmod +x regexrename<br />
    $ vi regexreplace
    -----start create script regexreplace-----
    -enter the following content:
    #!/bin/sh
    echo Replacing file $1...
    mv "$1" "$1.replaced"
    sed "$2" "$1.replaced" > "$1"
    -save and quit vi
    -----end create script regexreplace-----
    $ chmod +x regexreplace<br />
    $ cd eclipse-src
    $ unzip ~/Softwares/java/eclipse-sourceBuild-srcIncluded-3.1.zip
    $ vi ./build
    -----start modify script ./build-----
    -change line:
    export ANT_OPTS=-Xmx1000M
    -to
    ANT_OPTS=-Xmx1000M; export ANT_OPTS
    -add a blank line at end of file, to regard the last line to sed-----
    -----end modify script ./build-----
    -----now replace all sparc with i386 in directory and file names,
    -----don't change i386 to x86, although x86 seems better follow eclipse src naming conventions,
    -----or you have to perform some extra modifications on some scripts to correct x86 to i386,
    -----like the awt lib path, that is $JAVA_HOME/jre/lib/sparc on sun machines and
    -----$JAVA_HOME/jre/lib/i386 on intel PCs, NOT $JAVA_HOME/jre/lib/x86-----
    $ find ./ -name \*sparc\* -exec ../regexrename "{}" 's/sparc/i386/g' \;
    Renaming ./plugins/org.eclipse.platform.source.solaris.gtk.sparc to ./plugins/org.eclipse.platform.source.solaris.gtk.i386
    find: stat() error ./plugins/org.eclipse.platform.source.solaris.gtk.sparc/frag ment.xml: No such file or directory
    find: stat() error ./plugins/org.eclipse.platform.source.solaris.gtk.sparc/META -INF: No such file or directory
    find: stat() error ./plugins/org.eclipse.platform.source.solaris.gtk.sparc/buil d.properties: No such file or directory
    find: stat() error ./plugins/org.eclipse.platform.source.solaris.gtk.sparc/abou t.html: No such file or directory
    Renaming ./plugins/org.eclipse.rcp.source.solaris.gtk.sparc to ./plugins/org.eclipse.rcp.source.solaris.gtk.i386
    find: stat() error ./plugins/org.eclipse.rcp.source.solaris.gtk.sparc/build.xml : No such file or directory
    Renaming ./assemble.org.eclipse.sdk.solaris.gtk.sparc.xml.replaced to ./assemble.org.eclipse.sdk.solaris.gtk.i386.xml.replaced
    -----Regarding the errors above, re-run the command to make sure-----
    $ find ./ -name \*sparc\* -exec ../regexrename "{}" 's/sparc/i386/g' \;
    $
    -----now replace all sparc inside all revelant text files with i386-----
    $ find ./ -type f \( -name \*.xml -o -name \*.properties -o -name \*.sh -o -name build \) -exec fgrep -s sparc "{}" \; -exec ../regexreplace "{}" 's/sparc/i386/g' \;
    Replacing file ./build...
    Replacing file ./plugins/org.eclipse.ui.cheatsheets/build.xml...
    Replacing file ./assemble.org.eclipse.sdk.all.xml...
    $
    -----Perform a normal build-----
    $ sh ./build -os solaris -ws gtk -arch i386 -compilelibs
    BUILD SUCCESSFUL
    Total time: 17 minutes 45 seconds
    -----eclipse/eclipse seems remain the one for SPARC arch, update it manually-----
    $ cp launchertmp/eclipse eclipse/
    -----test run the compiled binary-----
    $ eclipse/eclipse
    -----eclipse 3.1 should start-----
    -----Finally, be careful if you want to keep or distribute result/solaris-gtk-i386-sdk.zip,
    -----eclipse/eclipse inside it remains the one for SPARC arch, you may want to
    -----update it first.-----

    bash
    may also need to set path to /usr/sfw/bin/gcc.
    and don't know why need to cp launchertmp/eclipse to overwrite the old one.
    But it do works for us.
    *** Date: Fri May 19 08:51:20 CST 2006
    *** Platform Details:
    *** System properties:
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20060118-1600
    eclipse.commands=-os
    solaris
    -ws
    gtk
    -arch
    sparc
    -launcher
    /export/home/looric/eclipse/./eclipse
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    17
    -vm
    /usr/bin/java
    eclipse.product=org.eclipse.sdk.ide
    eclipse.startTime=1147999845899
    eclipse.vm=/usr/bin/java
    eclipse.vmargs=-Xms40m
    -Xmx256m
    -jar
    /export/home/looric/eclipse/./startup.jar
    eof=eof
    file.encoding=UTF-8
    file.encoding.pkg=sun.io
    file.separator=/
    java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    java.awt.printerjob=sun.print.PSPrinterJob
    java.class.path=/export/home/looric/eclipse/./startup.jar
    java.class.version=49.0
    java.endorsed.dirs=/usr/jdk/instances/jdk1.5.0/jre/lib/endorsed
    java.ext.dirs=/usr/jdk/instances/jdk1.5.0/jre/lib/ext
    java.home=/usr/jdk/instances/jdk1.5.0/jre
    java.io.tmpdir=/var/tmp/
    java.library.path=/usr/jdk/instances/jdk1.5.0/jre/lib/i386/client:/usr/jdk/instances/jdk1.5.0/jre/lib/i386:/usr/jdk/instances/jdk1.5.0/jre/../lib/i386:/usr/lib
    java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
    java.runtime.version=1.5.0_06-b05
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.5
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.5.0_06
    java.vm.info=mixed mode, sharing
    java.vm.name=Java HotSpot(TM) Client VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=1.5.0_06-b05
    line.separator=
    org.osgi.framework.bootdelegation=*
    org.osgi.framework.executionenvironment=J2SE-1.5
    org.osgi.framework.language=en
    org.osgi.framework.os.name=SunOS
    org.osgi.framework.os.version=5.10
    org.osgi.framework.processor=x86
    org.osgi.framework.system.packages=javax.accessibility,javax.activity,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stream,javax.xml.validation,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.events,org.w3c.dom.ls,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.3.0
    org.osgi.supports.framework.extension=true
    os.arch=x86
    os.name=SunOS
    os.version=5.10
    osgi.arch=sparc
    osgi.bundles=org.eclipse.core.runtime@2:start, org.eclipse.update.configurator@3:start
    osgi.bundlestore=/export/home/looric/eclipse/configuration/org.eclipse.osgi/bundles
    osgi.configuration.area=file:/export/home/looric/eclipse/configuration/
    osgi.framework=file:/export/home/looric/eclipse/plugins/org.eclipse.osgi_3.1.2.jar
    osgi.framework.beginningstartlevel=1
    osgi.framework.shape=jar
    osgi.framework.version=3.1.2
    osgi.install.area=file:/export/home/looric/eclipse/
    osgi.instance.area=file:/export/home/looric/workspace/
    osgi.instance.area.default=file:/export/home/looric/workspace/
    osgi.logfile=/export/home/looric/workspace/.metadata/.log
    osgi.manifest.cache=/export/home/looric/eclipse/configuration/org.eclipse.osgi/manifests
    osgi.nl=en_US
    osgi.os=solaris
    osgi.splashLocation=/export/home/looric/eclipse/plugins/org.eclipse.platform_3.1.2/splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath=/export/home/looric/eclipse/plugins
    osgi.ws=gtk
    path.separator=:
    sun.arch.data.model=32
    sun.boot.class.path=/usr/jdk/instances/jdk1.5.0/jre/lib/rt.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/i18n.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jsse.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/jce.jar:/usr/jdk/instances/jdk1.5.0/jre/lib/charsets.jar:/usr/jdk/instances/jdk1.5.0/jre/classes
    sun.boot.library.path=/usr/jdk/instances/jdk1.5.0/jre/lib/i386
    sun.cpu.endian=little
    sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop=gnome
    sun.io.unicode.encoding=UnicodeBig
    sun.jnu.encoding=UTF-8
    sun.management.compiler=HotSpot Client Compiler
    sun.os.patch.level=unknown
    user.country=US
    user.dir=/export/home/looric/eclipse
    user.home=/export/home/looric
    user.language=en
    user.name=looric
    user.timezone=PRC
    *** Features:
    org.eclipse.jdt (3.1.2) "Eclipse Java Development Tools"
    org.eclipse.jdt.source (3.1.2) "Eclipse Java Development Tools SDK"
    org.eclipse.pde (3.1.2) "Eclipse Plug-in Development Environment"
    org.eclipse.pde.source (3.1.2) "Eclipse Plug-in Development Environment Developer Resources"
    org.eclipse.platform (3.1.2) "Eclipse Platform"
    org.eclipse.platform.source (3.1.2) "Eclipse Platform Plug-in Developer Resources"
    org.eclipse.rcp (3.1.2) "Eclipse RCP"
    org.eclipse.rcp.source (3.1.2) "Eclipse RCP Plug-in Developer Resources"
    org.eclipse.sdk (3.1.2) "Eclipse Project SDK"
    *** Plug-in Registry:
    org.apache.ant (1.6.5) "Apache Ant" [Resolved]
    org.apache.lucene (1.4.3) "Apache Lucene" [Resolved]
    org.eclipse.ant.core (3.1.1) "Ant Build Tool Core" [Resolved]
    org.eclipse.ant.ui (3.1.2) "Ant UI" [Resolved]
    org.eclipse.compare (3.1.1) "Compare Support" [Resolved]
    org.eclipse.core.boot (3.1.0) "Core Boot" [Resolved]
    org.eclipse.core.commands (3.1.0) "Commands" [Active]
    org.eclipse.core.expressions (3.1.0) "Expression Language" [Active]
    org.eclipse.core.filebuffers (3.1.2) "File Buffers" [Active]
    org.eclipse.core.resources (3.1.2) "Core Resource Management" [Active]
    org.eclipse.core.resources.compatibility (3.1.0) "Core Resource Management Compatibility Fragment" [Resolved]
    org.eclipse.core.runtime (3.1.2) "Core Runtime" [Active]
    org.eclipse.core.runtime.compatibility (3.1.0) "Core Runtime Plug-in Compatibility" [Active]
    org.eclipse.core.variables (3.1.0) "Core Variables" [Resolved]
    org.eclipse.debug.core (3.1.2) "Debug Core" [Active]
    org.eclipse.debug.ui (3.1.2) "Debug UI" [Active]
    org.eclipse.help (3.1.0) "Help System Core" [Active]
    org.eclipse.help.appserver (3.1.0) "Help Application Server" [Resolved]
    org.eclipse.help.base (3.1.0) "Help System Base" [Resolved]
    org.eclipse.help.ui (3.1.1) "Help System UI" [Resolved]
    org.eclipse.help.webapp (3.1.0) "Help System Webapp" [Resolved]
    org.eclipse.jdt (3.1.0) "Eclipse Java Development Tools" [Resolved]
    org.eclipse.jdt.core (3.1.2) "Java Development Tools Core" [Active]
    org.eclipse.jdt.debug (3.1.1) "JDI Debug Model" [Resolved]
    org.eclipse.jdt.debug.ui (3.1.2) "JDI Debug UI" [Resolved]
    org.eclipse.jdt.doc.isv (3.1.2) "Eclipse JDT Plug-in Developer Guide" [Resolved]
    org.eclipse.jdt.doc.user (3.1.1) "Eclipse Java Development User Guide" [Resolved]
    org.eclipse.jdt.junit (3.1.1) "Java Development Tools JUnit support" [Resolved]
    org.eclipse.jdt.junit.runtime (3.1.0) "Java Development Tools JUnit runtime support" [Resolved]
    org.eclipse.jdt.launching (3.1.0) "Java Development Tools Launching Support" [Resolved]
    org.eclipse.jdt.source (3.1.2) "Eclipse Java Development Tools SDK" [Resolved]
    org.eclipse.jdt.ui (3.1.2) "Java Development Tools UI" [Active]
    org.eclipse.jface (3.1.1) "JFace" [Active]
    org.eclipse.jface.text (3.1.2) "JFace Text" [Active]
    org.eclipse.ltk.core.refactoring (3.1.0) "Refactoring Core" [Resolved]
    org.eclipse.ltk.ui.refactoring (3.1.1) "Refactoring UI" [Resolved]
    org.eclipse.osgi.services (3.1.2) "OSGi Release 3 Services" [Resolved]
    org.eclipse.osgi.util (3.1.1) "OSGi R3 Utility Classes" [Resolved]
    org.eclipse.pde (3.1.0) "Eclipse Plug-in Development Environment" [Resolved]
    org.eclipse.pde.build (3.1.2) "Plug-in Development Environment Build Support" [Resolved]
    org.eclipse.pde.core (3.1.1) "Plug-in Development Core" [Resolved]
    org.eclipse.pde.doc.user (3.1.2) "Eclipse Plug-in Development User Guide" [Resolved]
    org.eclipse.pde.junit.runtime (3.1.0) "PDE JUnit Plug-in Test" [Resolved]
    org.eclipse.pde.runtime (3.1.1) "Plug-in Development Environment Runtime" [Resolved]
    org.eclipse.pde.source (3.1.2) "Eclipse Plug-in Development Environment Developer Resources" [Resolved]
    org.eclipse.pde.ui (3.1.2) "Plug-in Development UI" [Resolved]
    org.eclipse.platform (3.1.2) "Eclipse Platform" [Resolved]
    org.eclipse.platform.doc.isv (3.1.2) "Eclipse Platform Plug-in Developer Guide" [Resolved]
    org.eclipse.platform.doc.user (3.1.1) "Eclipse Workbench User Guide" [Resolved]
    org.eclipse.platform.source (3.1.2) "Eclipse Platform Plug-in Developer Resources" [Resolved]
    org.eclipse.rcp (3.1.0) "Eclipse RCP" [Resolved]
    org.eclipse.rcp.source (3.1.2) "Eclipse RCP Plug-in Developer Resources" [Resolved]
    org.eclipse.rcp.source.solaris.gtk.sparc (3.1.2) "Eclipse RCP Plug-in Developer Resources" [Resolved]
    org.eclipse.sdk (3.1.2) "Eclipse Project SDK" [Resolved]
    org.eclipse.search (3.1.2) "Search Support" [Resolved]
    org.eclipse.swt (3.1.0) "Standard Widget Toolkit" [Resolved]
    org.eclipse.swt.gtk.solaris.sparc (3.1.1) "Standard Widget Toolkit for GTK 2.0" [Resolved]
    org.eclipse.team.core (3.1.1) "Team Support Core" [Active]
    org.eclipse.team.cvs.core (3.1.1) "CVS Team Provider Core" [Resolved]
    org.eclipse.team.cvs.ssh (3.1.0) "CVS SSH Core" [Resolved]
    org.eclipse.team.cvs.ssh2 (3.1.0) "CVS SSH2" [Resolved]
    org.eclipse.team.cvs.ui (3.1.1) "CVS Team Provider UI" [Resolved]
    org.eclipse.team.ui (3.1.1) "Team Support UI" [Resolved]
    org.eclipse.text (3.1.1) "Text" [Active]
    org.eclipse.tomcat (4.1.30.1) "Tomcat Wrapper" [Resolved]
    org.eclipse.ui (3.1.2) "Eclipse UI" [Active]
    org.eclipse.ui.browser (3.1.1) "Browser Support" [Resolved]
    org.eclipse.ui.cheatsheets (3.1.1) "Cheat Sheets" [Resolved]
    org.eclipse.ui.console (3.1.2) "Console" [Resolved]
    org.eclipse.ui.editors (3.1.1) "Default Text Editor" [Active]
    org.eclipse.ui.externaltools (3.1.1) "External Tools" [Active]
    org.eclipse.ui.forms (3.1.0) "Eclipse Forms" [Resolved]
    org.eclipse.ui.ide (3.1.1) "Eclipse IDE UI" [Active]
    org.eclipse.ui.intro (3.1.1) "Welcome Framework" [Resolved]
    org.eclipse.ui.presentations.r21 (3.1.0) "R21 Presentation Plug-in" [Resolved]
    org.eclipse.ui.views (3.1.1) "Views" [Active]
    org.eclipse.ui.workbench (3.1.2) "Workbench" [Active]
    org.eclipse.ui.workbench.compatibility (3.1.0) "Workbench Compatibility" [Resolved]
    org.eclipse.ui.workbench.texteditor (3.1.2) "Text Editor Framework" [Active]
    org.eclipse.update.configurator (3.1.0) "Install/Update Configurator" [Active]
    org.eclipse.update.core (3.1.2) "Install/Update Core" [Resolved]
    org.eclipse.update.scheduler (3.1.0) "Automatic Updates Scheduler" [Active]
    org.eclipse.update.ui (3.1.1) "Install/Update UI" [Resolved]
    org.junit (3.8.1) "JUnit Testing Framework" [Resolved]
    system.bundle (3.1.2) "OSGi System Bundle" [Active]
    *** User Preferences:
    #Fri May 19 08:51:21 CST 2006
    /instance/org.eclipse.jdt.ui/org.eclipse.jface.textfont=1|Monospace|10|0|GTK|1|;
    /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles.version=8
    /instance/org.eclipse.ui/showIntro=false
    @org.eclipse.ui=3.1.2
    \!/=
    /instance/org.eclipse.ui.ide/platformState=88
    /configuration/org.eclipse.ui.ide/SHOW_WORKSPACE_SELECTION_DIALOG=true
    /instance/org.eclipse.core.resources/version=1
    /instance/org.eclipse.ui.ide/tipsAndTricks=true
    /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.editor.tab.width=
    @org.eclipse.core.resources=3.1.2
    /instance/org.eclipse.jdt.ui/useQuickDiffPrefPage=true
    @org.eclipse.ui.ide=3.1.1
    @org.eclipse.jdt.ui=3.1.2
    /instance/org.eclipse.jdt.ui/tabWidthPropagated=true
    /configuration/org.eclipse.ui.ide/RECENT_WORKSPACES_PROTOCOL=2
    /configuration/org.eclipse.ui.ide/MAX_RECENT_WORKSPACES=5
    /configuration/org.eclipse.ui.ide/RECENT_WORKSPACES=/export/home/looric/workspace
    /instance/org.eclipse.jdt.ui/fontPropagated=true
    /instance/org.eclipse.jdt.ui/useAnnotationsPrefPage=true
    /instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.javadoclocations.migrated=true
    /instance/org.eclipse.ui.ide/quickStart=true
    file_export_version=3.0
    *** Current Install Configuration:
    Install configuration:
    Last changed on May 19, 2006
    Location: file:/export/home/looric/eclipse/configuration/org.eclipse.update/platform.xml
    Configured sites:
    platform:/base/
    Configured features:
    ID: org.eclipse.platform, Version: 3.1.2
    ID: org.eclipse.rcp, Version: 3.1.2
    ID: org.eclipse.platform.source, Version: 3.1.2
    ID: org.eclipse.jdt, Version: 3.1.2
    ID: org.eclipse.jdt.source, Version: 3.1.2
    ID: org.eclipse.pde, Version: 3.1.2
    ID: org.eclipse.pde.source, Version: 3.1.2
    ID: org.eclipse.sdk, Version: 3.1.2
    ID: org.eclipse.rcp.source, Version: 3.1.2
    Configured plug-ins:
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.core_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.cheatsheets_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.help.base_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ant.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.source_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.cvs.ui_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.runtime_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.help.webapp_3.1.0/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.workbench_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.build_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.osgi.util_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.apache.lucene_1.4.3/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.resources_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.search_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.update.configurator_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.expressions_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.doc.user_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.resources.compatibility_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.tomcat_4.1.30.1/
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.cvs.ssh_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.debug_3.1.1/
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.cvs.ssh2_3.1.0/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.runtime.compatibility_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.update.core_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.debug.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.help.ui_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.presentations.r21_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jface_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.doc.user_3.1.1/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.commands_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.osgi_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.compare_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.rcp.source.solaris.gtk.i386_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.cvs.core_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.sdk_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.update.ui_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.platform.source_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.forms_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.platform.doc.user_3.1.1/
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.intro_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.console_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.help_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.rcp.source_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.filebuffers_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.editors_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.junit.runtime_3.1.0/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.runtime_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.rcp_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jface.text_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.source_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.workbench.texteditor_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ltk.core.refactoring_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.1.0/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.views_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.doc.isv_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.text_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.swt_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.workbench.compatibility_3.1.0/
    file:/export/home/looric/eclipse/plugins/org.eclipse.platform_3.1.2/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ltk.ui.refactoring_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.swt.gtk.solaris.i386_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.help.appserver_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.apache.ant_1.6.5/
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.variables_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.externaltools_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ant.core_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.core.boot_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.ui_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.update.scheduler_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.debug.core_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.debug.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.team.core_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.ide_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.osgi.services_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.launching_3.1.0.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.ui_3.1.2.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.jdt.junit_3.1.1/
    file:/export/home/looric/eclipse/plugins/org.junit_3.8.1/
    file:/export/home/looric/eclipse/plugins/org.eclipse.ui.browser_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.pde.core_3.1.1.jar
    file:/export/home/looric/eclipse/plugins/org.eclipse.platform.doc.isv_3.1.2/

  • [SOLVED] calibre fails to start (python2-six: No module named moves )

    i have same problem with last calibre (2.28.0-1):
    $ calibre
    Traceback (most recent call last):
    File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
    ac.do_genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
    self.genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
    from calibre.ebooks.oeb.polish.create import valid_empty_formats
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ calibre-debug -g
    calibre 2.28 isfrozen: False is64bit: False
    Linux-4.0.1-1-ARCH-i686-with-glibc2.0 Linux ('32bit', 'ELF')
    ('Linux', '4.0.1-1-ARCH', '#1 SMP PREEMPT Wed Apr 29 12:15:20 CEST 2015')
    Python 2.7.9
    Linux: ('', '', '')
    Starting up...
    Traceback (most recent call last):
    File "/usr/lib/calibre/calibre/gui2/ui.py", line 226, in initialize
    ac.do_genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 143, in do_genesis
    self.genesis()
    File "/usr/lib/calibre/calibre/gui2/actions/add.py", line 82, in genesis
    from calibre.ebooks.oeb.polish.create import valid_empty_formats
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/create.py", line 18, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ ebook-edit
    Traceback (most recent call last):
    File "/usr/bin/ebook-edit", line 20, in <module>
    sys.exit(ebook_edit())
    File "/usr/lib/calibre/calibre/gui_launch.py", line 83, in ebook_edit
    main(args)
    File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 76, in main
    _run(args)
    File "/usr/lib/calibre/calibre/gui2/tweak_book/main.py", line 51, in _run
    from calibre.gui2.tweak_book.ui import Main
    File "/usr/lib/calibre/calibre/gui2/tweak_book/ui.py", line 28, in <module>
    from calibre.gui2.tweak_book.file_list import FileListWidget
    File "/usr/lib/calibre/calibre/gui2/tweak_book/file_list.py", line 23, in <module>
    from calibre.ebooks.oeb.polish.container import guess_type, OEB_FONTS
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py", line 32, in <module>
    from calibre.ebooks.oeb.polish.parsing import parse as parse_html_tweak
    File "/usr/lib/calibre/calibre/ebooks/oeb/polish/parsing.py", line 15, in <module>
    from html5lib.constants import namespaces, tableInsertModeElements, EOF
    File "/usr/lib/python2.7/site-packages/html5lib/__init__.py", line 16, in <module>
    from .html5parser import HTMLParser, parse, parseFragment
    File "/usr/lib/python2.7/site-packages/html5lib/html5parser.py", line 6, in <module>
    from . import inputstream
    File "/usr/lib/python2.7/site-packages/html5lib/inputstream.py", line 3, in <module>
    from six.moves import http_client
    ImportError: No module named moves
    $ pacman -Q|grep calibre
    calibre 2.28.0-1
    [topo@linux ~]$ pacman -Q|grep python
    python 3.4.3-2
    python-cairo 1.10.0-5
    python-dbus 1.2.0-4
    python-dbus-common 1.2.0-4
    python-gobject 3.16.1-1
    python-gobject2 2.28.6-11
    python-html2text 2015.4.14-1
    python-lhafile 0.1.0fs4-1
    python-pycups 1.9.72-2
    python-pycurl 7.19.5.1-2
    python-pyqt4 4.11.3-4
    python-requests 2.6.2-1
    python-setuptools 1:15.2-1
    python-sip 4.16.7-1
    python-xdg 0.25-2
    python2 2.7.9-1
    python2-apsw 3.8.9-1
    python2-beaker 1.7.0-1
    python2-beautifulsoup3 3.2.1-3
    python2-cairo 1.10.0-2
    python2-cffi 0.9.2-2
    python2-chardet 2.3.0-1
    python2-cherrypy 3.6.0-1
    python2-crypto 2.6.1-2
    python2-cryptography 0.8.2-1
    python2-cssselect 0.9.1-2
    python2-cssutils 1.0-2
    python2-dateutil 2.4.2-1
    python2-dbus 1.2.0-4
    python2-dnspython 1.12.0-1
    python2-enum34 1.0.4-1
    python2-fuse 0.2.1-5
    python2-gobject 3.16.1-1
    python2-gobject2 2.28.6-11
    python2-html5lib 0.999-5
    python2-lxml 3.4.4-1
    python2-mako 1.0.1-1
    python2-markupsafe 0.23-2
    python2-mechanize 0.2.5-4
    python2-netifaces 0.10.4-1
    python2-numpy 1.9.2-2
    python2-pillow 2.8.1-1
    python2-ply 3.6-1
    python2-psutil 2.2.1-2
    python2-pyasn1 0.1.7-2
    python2-pycparser 2.12-1
    python2-pyenchant 1.6.6-1
    python2-pygments 2.0.2-2
    python2-pyopenssl 0.14-3
    python2-pyqt4 4.11.3-4
    python2-pyqt5 5.4.1-2
    python2-reportlab 3.1.44-2
    python2-setuptools 1:15.2-1
    python2-sip 4.16.7-1
    python2-six 1.9.0-1
    python2-twisted 15.1.0-1
    python2-xdg 0.25-2
    python2-zope-interface 4.1.2-2
    only ebook-viewer works.
    if I install it from official site, it works.
    Last edited by quellen (2015-05-17 16:28:49)

    $ pacman -Qkk python2-six python2 calibre
    python2-six: 12 file totali, 0 file alterati
    python2: 4716 file totali, 0 file alterati
    calibre: 4881 file totali, 0 file alterati
    $ python2
    Python 2.7.9 (default, Dec 11 2014, 05:36:55)
    [GCC 4.9.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import six
    >>> six.__file__
    '/usr/lib/python2.7/site-packages/six/__init__.pyc'
    >>>
    $ ls -l /usr/lib/python2.7/site-packages/six/
    totale 84
    -rw-r--r-- 1 root root 58 22 mar 2014 __init__.py
    -rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyc
    -rw-r--r-- 1 root root 236 28 nov 21.06 __init__.pyo
    -rw-r--r-- 1 root root 20588 22 mar 2014 six.py
    -rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyc
    -rw-r--r-- 1 root root 20739 28 nov 21.06 six.pyo
    Last edited by quellen (2015-05-17 12:28:15)

  • Resource path

    First I checked it was all OK without POSIX and it works:
    display dialog "Open last saved or choose file" buttons {"Open last", "Open other"} default button 2
    if button returned of result is "Open last" then
    set val1 to alias (read file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt")
    --Read pref file to find out path of last edited file.
    if val1 is "Default" then
    EditFile("no")
    else
    EditFile(val1)
    end if
    else
    EditFile("no")
    end if
    on EditFile(val2)
    if val2 is "no" then
    set val3 to (choose file with prompt "Please select a .txt file:
    To save a text file as .txt in TextEdit, click 'Make Plain Text' in the Format menu and save the file.")
    --Get file path.
    else
    set val3 to val2
    end if
    if (get eof val3) is 0 then --Read doesn't like eof (end of file) to be 0 bytes.
    set val4 to ""
    else
    set val4 to read val3 --Read file before it gets erased.
    end if
    open for access val3 with write permission --Open file.
    repeat
    set eof val3 to 0 --Erase file.
    display dialog "Edit your text." default answer val4 buttons {"Revert", "Save"}
    set {val5, val6} to {text returned of result, button returned of result}
    if val6 is "Save" then
    write val5 to val3
    exit repeat
    else
    write val4 to val3
    end if
    end repeat
    --Write to file giving old data as default (to give the same affect as as read and edit).
    close access val3
    open for access file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" with write permission
    set eof file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" to 0
    write (val3 as string) to file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt" as text
    close access file "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt"
    --Save path of edited file to pref file.
    end EditFile
    But change that 3rd line to:
    set val1 to alias (read file (path to resource "Save Location Pref.txt"))
    gets the error:
    Can’t make file (alias "Macintosh HD:Users:Richard:Library:Scripts:Richard's Text Editor 3.scptd:Contents:Resources:Save Location Pref.txt") into type file.

    Use the following as the third line:
    set val1 to alias (read file ((path to resource "Save Location Pref.txt") as string))
    (47286)

  • Client Backup Service stopped, can not be restarted

    Recently I started to get a critical error saying the service Windows Server Essentials Computer Backup is not running.
    It did work before and I hadn't made any changes to the server.
    I can not repair the error / restart the service. It will stop again in a few seconds.
    I have installed the latest updates to my WSE 2012 R2.
    I have tried to move the backup folder to different hard drives, and I have checked all disks for errors. I tried to empty the folder and ran the "wbadmin delete catalog" command.
    How can I continue my troubleshooting?
    Thanks.

    I have the same problem. The service can be restarted but stops immediately. I checked the log files and found this:
    [04/23/2015 13:57:03 2d80] *******************************************************************
    [04/23/2015 13:57:03 2d80] Backup Service Started.
    [04/23/2015 13:57:03  ab8] Listener: Created
    [04/23/2015 13:57:03  ab8] StartStopFiles: Backup data file directory is F:\ServerFolders\Client Computer Backups
    [04/23/2015 13:57:03  ab8] MainService: Error: The Windows Server Client Computer Backup Service encountered the following error: Error code: 38 API name: unexpected EOF File: F:\ServerFolders\Client Computer Backups\Commit.dat Error: 38
    [04/23/2015 13:57:03  ab8] MainService: Error: The Windows Server Client Computer Backup Service failed at (546) of (admin\serveressentials\backup\pc\util\diskfile.cpp)
    [04/23/2015 14:40:01 2b98] *******************************************************************
    [04/23/2015 14:40:01 2b98] Backup Service Started.
    [04/23/2015 14:40:01 32e8] Listener: Created
    [04/23/2015 14:40:01 32e8] StartStopFiles: Backup data file directory is F:\ServerFolders\Client Computer Backups
    [04/23/2015 14:40:01 32e8] MainService: Error: The Windows Server Client Computer Backup Service encountered the following error: Error code: 38 API name: unexpected EOF File: F:\ServerFolders\Client Computer Backups\Commit.dat Error: 38
    [04/23/2015 14:40:01 32e8] MainService: Error: The Windows Server Client Computer Backup Service failed at (546) of (admin\serveressentials\backup\pc\util\diskfile.cpp)
    [04/23/2015 14:43:43 2bc0] *******************************************************************
    [04/23/2015 14:43:43 2bc0] Backup Service Started.
    [04/23/2015 14:43:43 3270] Listener: Created
    [04/23/2015 14:43:43 3270] StartStopFiles: Backup data file directory is F:\ServerFolders\Client Computer Backups
    [04/23/2015 14:43:43 3270] MainService: Error: The Windows Server Client Computer Backup Service encountered the following error: Error code: 38 API name: unexpected EOF File: F:\ServerFolders\Client Computer Backups\Commit.dat Error: 38
    [04/23/2015 14:43:43 3270] MainService: Error: The Windows Server Client Computer Backup Service failed at (546) of (admin\serveressentials\backup\pc\util\diskfile.cpp)
    I tried to rename or delete 'Commit.dat' but was not able to. Got an 'access denied' error or "You require permission from SYSTEM to make changes to this file"
    I tried to change the owner of the file but got another 'access denied' error. I am logged in with an administrator account. All help would be much appreciated
    Thanks
    Bert-Jan

  • ITunes art script required

    Hi,
    In case anyone has something that does this, or knows of a script that may work, this is what I'm after:
    Get artwork of selected tracks, assess size of artwork in kb not pixels, if over 250kb then compress image, then re-embed to track as JPEG. That's it.
    Anyone?

    iLee wrote:
    So, If I understand correctly, and forgive my ignorance, would it be possible to compress the image and save it as a PNG?
    This is possible, if the jpeg is compressed enough to get a size between *15 Kb* and *18 Kb*.
    Convert a JPEG of 17 Kb to PNG give approximately a file of *250 Kb*
    If the % of compression down to 0, the script will reduce the image (width and height).
    Here the script
    property temp_file : (path to temporary items as string) & "artworkof_this_tracktemp.jpg"
    tell application "iTunes"
    repeat with t_track in (get selection)
    tell t_track to if exists artworks then try
    set t_png to my make_png(raw data of artwork 1)
    if t_png is not "" then set raw data of artwork 1 to t_png
    end try
    end repeat
    end tell
    say "Done"
    on makepng(artdata)
    try
    set open_file to (open for access temp_file with write permission)
    set eof open_file to 0 -- empty the file
    write art_data to open_file -- write artwork in the original format
    set x to get eof open_file -- get number of bytes
    close access open_file
    if x ≤ 250000 then return ""
    on error
    close access temp_file
    return ""
    end try
    -- this file > 250 kb
    set n to 51
    set tFile to quoted form of POSIX path of temp_file
    set temp_file2 to temp_file & ".png"
    set new_file to quoted form of POSIX path of temp_file2
    set y to x
    repeat while n > 0 -- convert file to JPEG, compress between 15 kb and 18 Kb
    do shell script "/usr/bin/sips -s format jpeg -s formatOptions " & n & " " & tFile & " --out " & new_file
    set x to get eof file temp_file2
    if x < 18000 then
    do shell script "/usr/bin/sips -s format png " & tFile & " --out " & new_file -- convert jpeg to png
    set y to get eof file temp_file2
    if y ≤ 250000 then exit repeat -- the size is ok
    end if
    set n to n - 10
    end repeat
    if x ≥ 18000 or y > 250000 then -- the jpeg compression < 1
    if x >= 18000 then do shell script "/usr/bin/sips -s format png " & tFile & " --out " & new_file -- convert jpeg to png
    set {t_width, t_height} to paragraphs of (do shell script "sips -g pixelWidth -g pixelHeight " & new_file & "| /usr/bin/awk '/pixel/ {print $NF}'")
    set The_size to t_height as integer
    if The_size < (t_width as integer) then set The_size to t_width as integer
    repeat while y > 250000
    if y > 350000 then
    set var1 to 1.2
    else if y > 300000 then
    set var1 to 1.06
    else
    set var1 to 1.03
    end if
    set The_size to The_size div var1 -- modify the Width and Height
    do shell script "/usr/bin/sips -Z " & The_size & " " & new_file -- resize the PNG
    set y to get eof file temp_file2
    end repeat
    end if
    return read file temp_file2 as «class PNG »
    end make_png

  • Spooling column headers correctly

    Hi,
    Im trying spooling a file in DB with below mentioned details.
    SET SERVEROUTPUT OFF
    set heading on
    SET PAUSE OFF
    SET FEED OFF
    SET PAGES 0
    SET LINE 5000
    SET VERI OFF
    SET TERM OFF
    SET TERMOUT OFF
    SET TIME OFF
    SET UNDERLINE OFF
    SET COLSEP ','
    SET ECHO OFF
    SET TRIM ON
    SET TRIMOUT ON
    SET TRIMSPOOL ON
    set newpage none
    spool ${OUTPUT_PATH}/${REPORT_NAME}/${REPORT}_${START_DATE}.csv
    @${SCRIPT_PATH}/${REPORT_NAME}/my_query.sql
    spool off
    exit;
    EOF
    file .sql has 20 odd columns.
    When file is spooled, it shows no columns headers at the top, why is it happening, I dont want to spool column headers separately.

    but is it possible to change the format of multiple columns in one goNo, not possible. You will have to write 20 column format <column_names> A<N> for all the required columns. Here column name and column alias both are same i.e. column format command works same for column alias.
    also tell me one thinng why "set heading on" does not work with "set pagesize 0"?The best thing might be to SET PAGESIZE 0, which turns off paging. Unfortunately, that turns off the automatic headers, too, so you'll have to supply your own header, manually, like this:
    Frank @ Column headers in SQLPLUS query

  • Apple script to open an attachment

    Hi all,
    Can someone help me writing an appleScript to open an attachment of a mail.
    I want to create a rule in Mail that when ever I get an email with a specific attachment it will be opened. I plan to run this script whenever mail is receiving an email with this attachment.
    Thanks,
    Ziv

    I run this from the script menu, so you will need to tidy it up and modify it for your rule.
    AK
    <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on saveAttachments(messageList, theAttachmentPath, FolderName)
    set attachmentCount to 0
    set WhoSentStuff to "" -- going to stick names in a text file later
    tell application "Mail"
    repeat with eachMessage in messageList
    -- check for attachments  
    try
    set theHeaders to all headers of eachMessage
    set AppleScript's text item delimiters to "multipart/mixed"
    if number of text items in theHeaders > 1 then -- check for attachments...  
    set theSource to source of eachMessage
    set AppleScript's text item delimiters to ""
    set Userid to my GetUserid(sender of eachMessage)
    set WhoSentStuff to WhoSentStuff & Userid & return
    set tempFileName to Userid & " Attachments"
    set tempFile to theAttachmentPath & tempFileName
    open for access file tempFile with write permission
    set eof file tempFile to 0
    write theSource to file tempFile as string
    close access file tempFile
    tell application "StuffIt Expander" to expand {alias tempFile} into alias theAttachmentPath with delete originals
    tell application "Finder"
    set theFolders to get (every folder in alias theAttachmentPath whose name is (tempFileName & " Folder"))
    if (count of theFolders) = 1 then
    set thePath to theAttachmentPath & tempFileName & " Folder"
    else
    set thePath to theAttachmentPath
    end if
    delete (every file in alias thePath whose name starts with tempFileName & ".attachment")
    -- rename file to userid, move it up
    set FileList to every file in alias thePath
    -- count existing files from this student
    set FileIndex to count of (every file in alias theAttachmentPath whose name begins with Userid)
    repeat with ThisFile in FileList
    set FileName to Userid
    if FileIndex > 0 then set FileName to FileName & "." & FileIndex
    set FileIndex to FileIndex + 1
    set name of ThisFile to FileName & "." & name extension of ThisFile
    set attachmentCount to attachmentCount + 1 --count extractions
    end repeat
    move (every file in alias thePath) to alias theAttachmentPath
    if (count of every file in alias thePath) = 0 then
    delete alias thePath
    end if
    end tell
    end if -- multipart/mixed message  
    on error TheError
    display dialog Userid & " -- " & TheError
    end try
    end repeat
    end tell
    tell application "Finder"
    set DidItFile to open for access theAttachmentPath & FolderName & "-DidItLog" with write permission
    write WhoSentStuff to DidItFile starting at eof
    close access DidItFile
    end tell
    return attachmentCount
    end saveAttachments
    on GetUserid(FullEmail)
    (** Return 1st word of email address after <, otherwise just 1st word **)
    set WhoDunIt to words of FullEmail
    repeat until WhoDunIt does not contain "<"
    set WhoDunIt to rest of WhoDunIt
    end repeat
    return item 1 of WhoDunIt
    end GetUserid
    </pre>

Maybe you are looking for