Compiling programs using jdk1.6.0

when i compiled program using "system.out.print.in " , it shows an error
that package system does not exist .

if you want to print something use
System.out.printor if you want to make it print on seperate lines
System.out.println

Similar Messages

  • Can Applet call IE program using JDK1.3?

    Hi,
    I am developing a program using jdk1.3
    At present, I need my applet to call IE to open an internet address.
    How can I do that?
    Thanks.

    Thanks.
    But, the html is opened in the same windown as the former one. I need to open a new IE window, and call the webpage, is there a way to achieve this?

  • Trying to compile program using Swing.

    I am trying to compile a SWING program (i.e. JFrame, JButton etc). Program does not have main method.
    Obviously when I compile, I get
    Exception in thread "main" java.lang.NoSuchMethodError: main.
    Isnt it allowable to have a Swing pgm without a main method ???
    Am I missing something obvious? Do I need to move a Swing jar file somewhere? Using J2SDK1.4.0 on WindowsME. Java is installed OK, because I can compile and execute other basic programs..

    No, all Java programs, just like C/C++ require a main() method entry point.
    Typically, in a Swing program, all you need to this is this (at the very minimum)
    public static void main(String[] args) {
    JFrame myAppFrame = new JFrame();
    myAppFrame.show();
    Usually you don't create a generic JFrame but instead extend your own class from a JFrame and put all of the initialization (JMenuBars, JPanels, windowlisteners, etc) in its constructor.

  • Program using Xalan 1.10 doesn't compile

    Hi all,
    I have to port some server code from Windows to Solaris. Normaly this works fine, but now I have a problem using Xalan 1.10.
    Platfrom: SunOS sun4 5.8 Generic_108528-24 sun4u sparc SUNW,Ultra-80
    Compiler: Sun C++ 5.7 Patch 117830-07 2006/03/15
    By including a Xalan header and compile it with "CC -I/opt/xalan/src -I/opt/xerces/src -library=stlport4 xalan.cpp" I got the errorlist below.
    Without stlport4 it compiles. I have to use this library, because I am using boost and I have had only success building the boost stuff with stlport4.
    Do I have to modify the Xalan header? Has anybody some suggestions?
    Thanks for your help
    Arno
    Here is the example code:
    #include <xalanc/XalanTransformer/XalanTransformer.hpp>
    int main ()
    return 0;
    Here are the error messages from the compiler:
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 102: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::Type*, std::random_access_iterator_tag, xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: While specializing "xalanc_1_10::XalanVector<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 106: Error: Too many arguments for template std::reverse_iterator<const xalanc_1_10::Type*, std::random_access_iterator_tag, const xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: While specializing "xalanc_1_10::XalanVector<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/Include/XalanVector.hpp", line 1101: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanDeque.hpp", line 186: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeIteratorTraits<xalanc_1_10::Value>, xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>>, std::random_access_iterator_tag, xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: While specializing "xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: Specialized in non-template code.
    "/opt/xalan/src/xalanc/Include/XalanDeque.hpp", line 190: Error: Too many arguments for template std::reverse_iterator<xalanc_1_10::XalanDequeIterator<xalanc_1_10::XalanDequeConstIteratorTraits<xalanc_1_10::Value>, xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>>, std::random_access_iterator_tag, const xalanc_1_10::Type>.
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: While specializing "xalanc_1_10::XalanDeque<xalanc_1_10::Type, xalanc_1_10::ConstructionTraits>".
    "/opt/xalan/src/xalanc/XPath/XalanQName.hpp", line 73: Where: Specialized in non-template code.
    4 Error(s) detected.

    On Solaris, Posix threads are implemented on top of native threads; the interfaces are different. There are no conflicts between the two libraries or their interfaces. You can mix Posix and native thread usage.
    libCstd and STLport are different implementations of the same interface. The size and layout of the standard types are different. The names of the standard functions are the same, but the definitions of those functions are different.
    Suppose both parts of the program use the standard string class. One part was compiled for use with libCstd, and creates the libCstd version of a string object. If that object gets passed to the part of the program compiled for use with STLport, it will have a different idea of how the class is defined.
    If you link both libCstd and libstdlport to the program, all the standard objects (like cin and cout) and functions (class members and free functions) will have the same names. You wil pick up the version from whichever library is linked first. Calling libCstd function on an STLport object won't work, and neither will the reverse.
    Finally, recall that much of the standard library consists of inline functions. The bodies of those functions are embeded in the .o files of your application code. The application code will therefore depend on a particular layout of standard class objects; the layout is different in the two libraries.
    We have not made a serious effort to compile BOOST using libCstd -- much of BOOST depends on too many missing features. Some suggestions:
    1. You can try experimenting with BOOST configuration macros and see if you can get the code to compile.
    2. You could wirte your own version of the BOOST components you are using, removing dependencies on features that are not in libCstd.
    3. You could ask the 3rd-party library supplies to provide a version compiled with -library=stlport.

  • Using jdk1.3 compiler over network on NT SP6 and Windows 2000 is very slow.

    We recenlty shifted to jdk1.3 from jdk1.2.2. We compile java files that
    are on a mapped network drive. The compiler,source files and the class
    files are read from and written to a mapped network drive.
    We have noticed that our compilation times have increased 3 times since
    we started using jdk1.3. We compile around 4000 files which use to take
    4 hours when jdk1.2.2 was used and with jdk1.3 it is taking around 14
    hours. This is the case when we compile on Windows 2000 and Windows NT
    Service Pack 6 machines. But compiling on Windows NT ServicePack5 it
    would get compiled in 5 hours. This is really weird but that is the
    workaround we have now that is using a NT Sp5 machine for compilation.
    Wondering if anyone else has seen this problem. Please let me know.
    Thanks,
    VJA.

    Well the bottleneck in your build process is always going to be the network regardless of the compiler you use.
    Ok, the compiler may be slower but the I/O issues far outweigh the compiler performance.
    What affects the build process you have that you can compile on a particular machine but the files must remain on a central server?
    There is little difference in copying all the files to a local machine, compiling locally and copying the class files back to the server, and having the compiler read from and write back to a network driver apart from performance. Obviously there may be some issues however very few that cannot be resolved.

  • How can I compile program which uses packages?

    Hi,
    I'm building a program using JBuilder9. I can successfully run using that IDE, but after I try to run it manually (run class file which compiled from JBuilder) by typing "javac myMainClass" it cannot find serveral packages which I put those packages' folder on the same root directory of myMainClass. Thank you.

    Man, you should probably read the following:
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
    Anyways, the first thing to do is to determine the current value of CLASSPATH (that is a system variable and it depends on your OS how you change/get its value).
    Next thing is to determine WHAT you need to add:
    For each used package check if its (root directory/jar) is in your CLASSPATH. If not add it, e.g.
    - you have a package my.test.package in C:\temp\myJar.jar then add C:\temp\myJar.jar
    - you have a package my.test.package in C:\temp, i.e. your fs structure is C:\temp\my\test\package, then add C:\temp
    For beginners, it's usually a good idea to have your CLASSPATH contain a dot (".") ...

  • Compile and run java programs using batch file

    i am using eclipse to run my java programs.How to compile and run those programs using a batch file?

    a) just write a batch file, and add it to the project. When you want to run it, go to a command window and invoke it. (There is probably also a way to invoke it from Eclipse)
    b) if the project is complicated, take a look at ant. Eclispe knows about ant files.

  • Problems with Ant when using JDK1.4

    Hi,
    I am currently trying to convince JDeveloper (9.0.3.10.35) to use jdk1.4 for building and executing my project.
    Now, using the IDE for building and execution everything seems to work fine after switching to the new J2SE Version in the project settings.
    Ant, however, refuses to work with the new IDE. It gives an "Error: Unable to execute Ant"
    On the other hand, staying with the default JDK version 1.3.1_02 (coming with JDeveloper) for ant execution results in conflicts of newer class versions (i.e. org.w3c.dom.Node) w.r.t. to <jdev>/lib/xmlparserv2.jar. The error is:
    compile:
    [javac] Compiling 263 source files to C:\Daten\JDeveloper\Projects\IAS39\jdev\classes
    [javac] C:\Daten\JDeveloper\Projects\IAS39\src\hea\accounting\cmd\AbstractCommand.java:20: cannot access org.w3c.dom.Node
    [javac] bad class file: C:\Programme\j2sdk1.4.0\jre\lib\rt.jar(org/w3c/dom/Node.class)
    [javac] class file has wrong version 48.0, should be 47.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] protected void readKey(Node keyNode){
    [javac] 1 error
    Obviously, I am missing something! Any help is highly appreciated!

    I experienced something similar. I tried to use JDK 1.4.2, I compile the project without errors but, when I try to run the project, which has EJBs, it fails.
    If I do the same using JDK 1.3.1.x, it works fine; but I need 1.4.x.
    The messages are the following:
    Copying default deployment descriptor from archive at J:\JHI\JProyectos\InterfazAlNSI\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\JDev903\jdev\system9.0.3.1035\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/J:/JHI/JProyectos/InterfazAlNSI/classes/ (No previous deployment found)... CentroPeriferico_StatelessSessionBeanWrapper8.java:6: cannot access java.rmi.NoSuchObjectException
    bad class file: C:\Archivos de programa\Java\j2re1.4.2\lib\rt.jar(java/rmi/NoSuchObjectException.class)
    class file has wrong version 48.0, should be 47.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    import java.rmi.NoSuchObjectException;
    ^
    1 error
    Error compiling J:\JHI\JProyectos\InterfazAlNSI\classes: Syntax error in source
    Thanks,
    Marcelo.

  • My compiled program will not execute on my PC.

    I am new to Java so is there anyone out there who can help me with a problem. I have a compiled Java program, the basic Hello World beginner's file. The file will compile, but not execute. It will execute on other computers, but not mine. Can anyone help me? I would greatly appreciate it. Oh yeah, I'm using jdk1.5.0_07. Thanks.

    Download JAVA Software Developement Kit (SDK previously JDK) from http://java.sun.com/javase/downloads/index.jsp
    Install the executable file just downloaded.
    Search for command.exe file inside C:\Windows\System32 and copy it to the 'bin' folder inside the jdk folder (say C:\Program Files\Java\jdk1.5.0_08\bin ).
    Now double click open the command.exe file and ( something like this will be displayed c:\PROGRA~1\.....\BIN>) type edit autoexec.bat
    Now type set path=%path%; c:\jdk..complete path (in my case set path=%path%;C:\Program Files\Java\jdk1.5.0_08\bin\autoexec.bat). For more info on setting path http://www.javacoffeebreak.com/tutorials/gettingstarted/part1b.html
    Save the file and exit.
    Thats it! Happy programming...
    -Madhu.
    Message was edited by:
    Madhu84

  • Compile problem using TOMCAT 5.0 and Apache ANT

    I got some sample from book.
    i just follow the step, place it the class file. it work. it run. show all the detail.
    but when i wan to compile it from java file, error came out
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.NoClassDefFoundError: com/jspbook/HelloWorld (wrong name: HelloWorld)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(Unknown Source)
         java.security.SecureClassLoader.defineClass(Unknown Source)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
         org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.in CMD:
    set java_home = C:\Program Files\Java\jdk1.5.0_08
    set classpath = C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib
    and Apache tomcat originally dont have servlet.jar but servlet-api.jar, i copy the servlet.jar from my friend
    i compile it using Apache ANT
    here the build.xml
    <?xml version="1.0" ?>
    <project name="jspbook" default="build" basedir=".">
      <target name="build">
        <echo>Starting Build </echo>
        <!-- Turn Tomcat Off -->
        <antcall target="tomcatOff"/>
        <!-- Compile Everything -->
        <antcall target="compile"/>
        <!-- Turn Tomcat On -->
        <antcall target="tomcatOn"/>
        <echo>Build Finished </echo>
      </target>
      <target name="tomcatOff">
        <echo>Turning Off Tomcat </echo>
        <exec executable="bash" os="Windows">
          <arg value="../../bin/shutdown.bat"/>
        </exec>
        <exec executable="bash" os="Linux">
          <arg value="../../bin/shutdown.sh"/>
        </exec>
      </target>
      <target name="tomcatOn">
        <echo>Starting Tomcat </echo>
        <exec executable="bash" os="Windows">
          <arg value="../../bin/startup.bat"/>
        </exec>
        <exec executable="bash" os="Linux">
          <arg value="../../bin/startup.sh"/>
        </exec>
      </target>
      <target name="compile">
        <javac
          srcdir="WEB-INF/classes"
          extdirs="WEB-INF/lib:../../common/lib"
          classpath="../../common/lib/servlet.jar"
          deprecation="yes"
          verbose="no">
          <include name="com/jspbook/**"/>
        </javac>
      </target>
    </project>compile success, but error in IE
    paste the sample class file in,restart tomcat. i work again!
    what is the problem!
    even i compile the code inside the Jcreator, after set required libraries to servlet.jar or servlet-api.jar
    compile it, success then run it in IE, same error!!!.
    what should i do.
    stil a beginer in servlet and jsp anyway.

    and Apache tomcat originally dont have servlet.jar but servlet-api.jar, i copy the servlet.jar from my friend servlet.jar is an OLD version, you should only use servlet-api.jar!
    wrong name: HelloWorldPerhaps there is a mistake in the class or packagename of the source file. Post the source here.

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • LV 8 problem with New Report.vi in compiled program

    I'm a novice LV programmer trying to finish my first project.  The project is the automation of an air flow stand using field point for acquisition/control.  Have the code written and everything seems to work fine until I compile.  Specifically, I get an error when I attempt to open an Excel template (XLT) using the New Report.vi included in the report generation add on.  When the compiled executable run I get a message with the header "Error 7 occured at Open VI reference in New Report vi>report2.vi>auto air flow testing.vi .   And then in the body of the message is says:
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.
    NI-488:  Non-existent board.
    VI Path: C:\builds\auto air flow\My Application\auto air flow 1a.exe\Excel_Open.vi
    Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared libr
    The input to the New Report.vi template connector is C:\Air Flow Data Files\templates\psc.xlt.  Again this works in design so I believe the formatting is correct and the file does exist.
    Why would this work in design environment but not the compiled program?  I recompiled several times and even tried reinstalling the report generation tool kit. Any help or pointers would be greatly appreciated. I will be happy to supply more info if necessary.   thanks. 

    Okay, I found the solution by doing a search here on 'Error 7".  My thanks to those who have posted the solution in the past.  Regards

  • [SOLVED] configure: error: cannot run C compiled programs

    I'm trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.
    makepkg messages:
    ==> Making package: lib32-libxkbcommon 0.5.0-1 (Mon May 11 00:17:05 EEST 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found libxkbcommon-0.5.0.tar.xz
    ==> Validating source files with sha256sums...
    libxkbcommon-0.5.0.tar.xz ... Passed
    ==> Extracting sources...
    -> Extracting libxkbcommon-0.5.0.tar.xz with bsdtar
    bsdtar: Failed to set default locale
    ==> Starting prepare()...
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc -m32
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ==> ERROR: A failure occurred in build().
    Aborting...
    makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    #-- The package required by makepkg to download VCS sources
    # Format: 'protocol::package'
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j5"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(!distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(!distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    config.log:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by libxkbcommon configure 0.5.0, which was
    generated by GNU Autoconf 2.69. Invocation command line was
    $ ./configure --prefix=/usr --libdir=/usr/lib32 --disable-docs --disable-static
    ## Platform. ##
    hostname = Arch
    uname -m = x86_64
    uname -r = 4.0.1-1-ARCH
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown
    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /usr/lib/jvm/default/bin
    PATH: /usr/bin/site_perl
    PATH: /usr/bin/vendor_perl
    PATH: /usr/bin/core_perl
    ## Core tests. ##
    configure:2424: checking for a BSD-compatible install
    configure:2492: result: /usr/bin/install -c
    configure:2503: checking whether build environment is sane
    configure:2558: result: yes
    configure:2709: checking for a thread-safe mkdir -p
    configure:2748: result: /usr/bin/mkdir -p
    configure:2755: checking for gawk
    configure:2771: found /usr/bin/gawk
    configure:2782: result: gawk
    configure:2793: checking whether make sets $(MAKE)
    configure:2815: result: yes
    configure:2844: checking whether make supports nested variables
    configure:2861: result: yes
    configure:2987: checking whether to enable maintainer-specific portions of Makefiles
    configure:2996: result: yes
    configure:3023: checking for style of include used by make
    configure:3051: result: GNU
    configure:3122: checking for gcc
    configure:3149: result: gcc -m32
    configure:3378: checking for C compiler version
    configure:3387: gcc -m32 --version >&5
    gcc (GCC) 5.1.0
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:3398: $? = 0
    configure:3387: gcc -m32 -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/gcc-multilib/src/gcc-5-20150505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
    Thread model: posix
    gcc version 5.1.0 (GCC)
    configure:3398: $? = 0
    configure:3387: gcc -m32 -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3387: gcc -m32 -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3418: checking whether the C compiler works
    configure:3440: gcc -m32 -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3444: $? = 0
    configure:3492: result: yes
    configure:3495: checking for C compiler default output file name
    configure:3497: result: a.out
    configure:3503: checking for suffix of executables
    configure:3510: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3514: $? = 0
    configure:3536: result:
    configure:3558: checking whether we are cross compiling
    configure:3566: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    In file included from /usr/include/stdio.h:27:0,
    from conftest.c:11:
    /usr/include/features.h:365:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    configure:3570: $? = 1
    configure:3577: ./conftest
    ./configure: line 3579: ./conftest: No such file or directory
    configure:3581: $? = 127
    configure:3588: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure:3590: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ## Cache variables. ##
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value='gcc -m32'
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_DOT_set=
    ac_cv_env_DOT_value=
    ac_cv_env_DOXYGEN_set=
    ac_cv_env_DOXYGEN_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_PKG_CONFIG_LIBDIR_set=
    ac_cv_env_PKG_CONFIG_LIBDIR_value=
    ac_cv_env_PKG_CONFIG_PATH_set=set
    ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib32/pkgconfig
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_XCB_XKB_CFLAGS_set=
    ac_cv_env_XCB_XKB_CFLAGS_value=
    ac_cv_env_XCB_XKB_LIBS_set=
    ac_cv_env_XCB_XKB_LIBS_value=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_set=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_value=
    ac_cv_env_YACC_set=
    ac_cv_env_YACC_value=
    ac_cv_env_YFLAGS_set=
    ac_cv_env_YFLAGS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/usr/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC='gcc -m32'
    ac_cv_prog_make_make_set=yes
    am_cv_make_support_nested_variables=yes
    ## Output variables. ##
    ACLOCAL='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing aclocal-1.14'
    ADMIN_MAN_DIR=''
    ADMIN_MAN_SUFFIX=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='$${TAR-tar}'
    AM_BACKSLASH='\'
    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    AM_DEFAULT_VERBOSITY='1'
    AM_V='$(V)'
    APP_MAN_DIR=''
    APP_MAN_SUFFIX=''
    AR=''
    AUTOCONF='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoconf'
    AUTOHEADER='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoheader'
    AUTOMAKE='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing automake-1.14'
    AWK='gawk'
    BASE_CFLAGS=''
    BUILD_LINUX_TESTS_FALSE=''
    BUILD_LINUX_TESTS_TRUE=''
    CC='gcc -m32'
    CCDEPMODE=''
    CFLAGS='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    CHANGELOG_CMD=''
    CPP=''
    CPPFLAGS='-D_FORTIFY_SOURCE=2'
    CWARNFLAGS=''
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR='.deps'
    DLLTOOL=''
    DOT=''
    DOXYGEN=''
    DRIVER_MAN_DIR=''
    DRIVER_MAN_SUFFIX=''
    DSYMUTIL=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_DOCS_FALSE=''
    ENABLE_DOCS_TRUE=''
    ENABLE_X11_FALSE=''
    ENABLE_X11_TRUE=''
    EXEEXT=''
    FGREP=''
    FILE_MAN_DIR=''
    FILE_MAN_SUFFIX=''
    GREP=''
    HAVE_DOT=''
    HAVE_DOT_FALSE=''
    HAVE_DOT_TRUE=''
    HAVE_DOXYGEN_FALSE=''
    HAVE_DOXYGEN_TRUE=''
    HAVE_NO_UNDEFINED_FALSE=''
    HAVE_NO_UNDEFINED_TRUE=''
    INSTALL_CMD=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LD=''
    LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIB_MAN_DIR=''
    LIB_MAN_SUFFIX=''
    LIPO=''
    LN_S=''
    LTLIBOBJS=''
    MAINT=''
    MAINTAINER_MODE_FALSE='#'
    MAINTAINER_MODE_TRUE=''
    MAKEINFO='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing makeinfo'
    MANIFEST_TOOL=''
    MAN_SUBSTS=''
    MISC_MAN_DIR=''
    MISC_MAN_SUFFIX=''
    MKDIR_P='/usr/bin/mkdir -p'
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='libxkbcommon'
    PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon'
    PACKAGE_NAME='libxkbcommon'
    PACKAGE_STRING='libxkbcommon 0.5.0'
    PACKAGE_TARNAME='libxkbcommon'
    PACKAGE_URL='http://xkbcommon.org'
    PACKAGE_VERSION='0.5.0'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PKG_CONFIG_LIBDIR=''
    PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
    RANLIB=''
    RT_LIBS=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRICT_CFLAGS=''
    STRIP=''
    VERSION='0.5.0'
    XCB_XKB_CFLAGS=''
    XCB_XKB_LIBS=''
    XKBCONFIGROOT=''
    XLOCALEDIR=''
    XORG_MALLOC_DEBUG_ENV=''
    XORG_MAN_PAGE=''
    YACC=''
    YACC_INST=''
    YFLAGS=''
    ac_ct_AR=''
    ac_ct_CC='gcc -m32'
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__nodep='_no'
    am__quote=''
    am__tar='$${TAR-tar} chof - "$$tardir"'
    am__untar='$${TAR-tar} xf -'
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/install-sh'
    libdir='/usr/lib32'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='$(MKDIR_P)'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    sysconfdir='${prefix}/etc'
    target_alias=''
    ## confdefs.h. ##
    /* confdefs.h */
    #define PACKAGE_NAME "libxkbcommon"
    #define PACKAGE_TARNAME "libxkbcommon"
    #define PACKAGE_VERSION "0.5.0"
    #define PACKAGE_STRING "libxkbcommon 0.5.0"
    #define PACKAGE_BUGREPORT "[url]https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon[/url]"
    #define PACKAGE_URL "[url]http://xkbcommon.org[/url]"
    #define PACKAGE "libxkbcommon"
    #define VERSION "0.5.0"
    configure: exit 1
    other info:
    core/pacman 4.2.1-1
    multilib/gcc-multilib 4.9.2-4 (multilib-devel) [installed]
        The GNU Compiler Collection - C and C++ frontends for multilib
    multilib/lib32-fakeroot 1.20.2-1 (multilib-devel) [installed]
        Tool for simulating superuser privileges (32-bit)
    multilib/lib32-libltdl 2.4.5-1 (multilib-devel) [installed]
        A generic library support script (32-bit)
    Last edited by tsester (2015-05-10 22:10:28)

    tsester wrote:P.S.: I recently transfered the linux system between failing disks
    In that case you should probably check that no other packages are missing files with
    pacman -Qkk 2>&1 | grep "No such file or directory"
    Any packages that report that they're missing files, you should reinstall.

  • Storing integers in a compiled program

    I would am wriitng a program and I would like to generate a unique number for each time a users uses the compiled program, is it possible to store previously incremented numbers i.e. the last person who used this program got a print out number of 5. The next person to use this program would then get the number 6 etc etc? At the moment I have only been made familiar to coding in Java in a sort of runtime environment only.
    An example of my thinking could be like so:
    private int mynumber=1;
    I woould then like to be able to set a new number most probably by creating a set method like so:
    public int setMyNumber(int mynumber){
    mynewnumber = mynumber+1;
    return mynewnumber;
    ...... then in my main method I would like to return this new number. Please note this may not actually work but just giving you an idea of my thinking.
    : )

    Kayaman wrote:
    cyber_frog wrote:
    Hi EJP,
    Not sure what you mean by a preference? Do you have any info?See the Preferences class.Additional > [url http://download.oracle.com/javase/6/docs/api/]API Doco
    Additional > [url http://download.oracle.com/javase/1.4.2/docs/guide/lang/preferences.html]Tutorial 

  • Java6: How to compile java using JavaCompiler class

    Hi all,
    Using JavaCompiler, we can run the java program thru programmaticaly using run() method.
    Could anyone please tell me how to compile a java program using JavaCompailer class? Or calling run() itself will compile java file?
    Thanks
    Shagil

    import spoon.support.input.SpoonInputStream;
    import com.sun.tools.javac.code.Symbol.ClassSymbol;
    import com.sun.tools.javac.comp.Attr;
    import com.sun.tools.javac.comp.AttrContext;
    import com.sun.tools.javac.comp.Enter;
    import com.sun.tools.javac.comp.Env;
    import com.sun.tools.javac.comp.Todo;
    import com.sun.tools.javac.tree.Tree;
    import com.sun.tools.javac.tree.Tree.ClassDef;
    import com.sun.tools.javac.tree.Tree.TopLevel;
    import com.sun.tools.javac.util.Abort;
    import com.sun.tools.javac.util.Context;
    import com.sun.tools.javac.util.List;
    import com.sun.tools.javac.util.ListBuffer;
    import com.sun.tools.javac.util.Log;
    import com.sun.tools.javac.util.Name;
    * The Spoon compiler (uses javac).
    public class SpoonCompiler extends com.sun.tools.javac.main.JavaCompiler {
         Attr attr;
         Enter enter;
         boolean hasBeenUsed = false;
         Log log;
         Todo todo;
         public SpoonCompiler(Context arg0) {
              super(arg0);
              enter = Enter.instance(arg0);
              todo = Todo.instance(arg0);
              log = Log.instance(arg0);
              attr = Attr.instance(arg0);
              sourceOutput=true;
          * Main method: compile a list of files, return all compiled classes
          * @param filenames
          *            The names of all files to be compiled.
         @SuppressWarnings("unused")
         public List<Tree> parseAndAttribute(List<SpoonInputStream> filenames)
                   throws Throwable {
              // as a JavaCompiler can only be used once, throw an exception if
              // it has been used before.
              assert !hasBeenUsed : "attempt to reuse JavaCompiler";
              hasBeenUsed = true;
              long msec = System.currentTimeMillis();
              ListBuffer<ClassSymbol> classes = new ListBuffer<ClassSymbol>();
              try {
                   // parse all files
                   ListBuffer<Tree> trees = new ListBuffer<Tree>();
                   for (List<SpoonInputStream> l = filenames; l.nonEmpty(); l = l.tail) {
                        trees.append(parse(l.head.getFileName(),l.head.getStream()));
                   // enter symbols for all files
                   List<Tree> roots = trees.toList();
                   if (errorCount() == 0)
                        enter.main(roots);
                   // If generating source, remember the classes declared in
                   // the original compilation units listed on the command line.
                   List<ClassDef> rootClasses = null;
                   if (sourceOutput || stubOutput) {
                        ListBuffer<ClassDef> cdefs = new ListBuffer<ClassDef>();
                        for (List<Tree> l = roots; l.nonEmpty(); l = l.tail) {
                             for (List<Tree> defs = ((TopLevel) l.head).defs; defs
                                       .nonEmpty(); defs = defs.tail) {
                                  if (defs.head instanceof ClassDef)
                                       cdefs.append((ClassDef) defs.head);
                        rootClasses = cdefs.toList();
                   while (todo.nonEmpty()) {
                        Env<AttrContext> env = todo.next();
                        // save tree prior to rewriting
                        Tree untranslated = env.tree;
                        // attribution phase
                        if (verbose)
                             printVerbose("checking.attribution", env.enclClass.sym);
                        Name prev = log.useSource(env.enclClass.sym.sourcefile);
                        attr.attribClass(env.tree.pos, env.enclClass.sym);
                   return trees.toList();
              } catch (Abort ex) {
                   ex.printStackTrace();
              if (verbose)
                   printVerbose("total", Long.toString(System.currentTimeMillis()
                             - msec));
              int errCount = errorCount();
              if (errCount == 1)
                   printerCount("error", errCount);
              else
                   printerCount("error.plural", errCount);
              if (log.nwarnings == 1)
                   printerCount("warn", log.nwarnings);
              else
                   printerCount("warn.plural", log.nwarnings);
              return null;
         private void printerCount(String str, int val) {
              System.err.println(str + " - " + val);
         private void printVerbose(String arg0, Object obj) {
              System.out.println(arg0 + " - " + obj.toString());
    --- NEW FILE: CtBuilder.java ---
    package spoon.support.builder;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.Stack;
    import java.util.TreeSet;
    import spoon.query.Query;
    import spoon.query.TypeFilter;
    import spoon.reflect.CtFactory;
    import spoon.reflect.code.BinaryOperatorKind;
    import spoon.reflect.code.CtAbstractInvocation;
    import spoon.reflect.code.CtArrayAccess;
    import spoon.reflect.code.CtAssert;
    import spoon.reflect.code.CtAssignment;
    import spoon.reflect.code.CtBinaryOperator;
    [...1760 lines suppressed...]
                var.setSimpleName(tree.sym.name.toString());
                var.setModifiers(getModifiers(tree.mods.flags));
                enter(var, tree);
                scan(tree.init);
                exit(var, tree);
        @Override
        public void visitWhileLoop(WhileLoop tree) {
            CtWhile whileLoop = new CtWhileImpl();
            enter(whileLoop, tree);
            builderContext.loopParameter = 1;
            scan(tree.cond);
            builderContext.loopParameter = 0;
            scan(tree.body);
            exit(whileLoop, tree);
    }

Maybe you are looking for

  • Drop down in dynamic table in the Adobe Interactive Form (Web dynpro ABAP)

    Hi All, I have scenario use drop down in dynamic table in the adobe interactive form (Using the button the dynamic table row will be increasing and decreasing). Assume I Add five rows dynamically in the dynamic table. The Last column contains Drop do

  • MacBook Pro (2010) Trackpad 2 finger scroll gesture

    I upgraded to OS Lion and I cannot get the scroll direction: natural two finger scroll to work.  I have tried playing around with the trackpad in system preferences to no avail.  Any ideas from anyone?  I saw something about Terminal in another threa

  • Power outage caused problems

    I have an eMac with a partitioned external hard drive.Music,pictures,movies,and backup.The power went out last night ,the eMac was asleep.I started up the computer this mourning,all of the partitions showed up except the music.I went to the Disc util

  • Autosubmit in input text changing other fields

    Hi, I have an af:inputText set to autosubmit. When it gets called it is changing the value of an already set selectonechoice to null. This is causing some major issues in usability. Is this normal behavior? I am using JDeveloper 11.1.1.6 Here is what

  • Includes in BridgeTalk object

    Hi all, I'm writing a module to execute scripts from InDesign to Photoshop. I used bridge talk and the module works until now I would like to include a library in the photoshop script but this script in executed in the photoshop context so I cannot u