Simple compilation question: linking with a jar

I am trying to compile a simple program and have it link with .jar files from JFreeChart. It compiles, but I can't run it, and for the life of me, I don't understand why:
-bash-3.00$ javac GenPie.java -classpath /opt/jfreechart-1.0.0/jfreechart-1.0.0.jar:/opt/jfreechart-1.0.0/lib/jcommon-1.0.0.jar:.
-bash-3.00$ java GenPie.class -classpath /opt/jfreechart-1.0.0/jfreechart-1.0.0.jar:/opt/jfreechart-1.0.0/lib/jcommon-1.0.0.jar:.
The java class is not found: org/jfree/data/general/PieDataset
The thing is, PieDataset is in the jar file (at least it's mentioned!)
-bash-3.00$ cat jfreechart-1.0.0.jar | strings | grep general/PieDataset
org/jfree/data/general/PieDataset.classuL;
org/jfree/data/general/PieDataset.classPK
Plus, the program compiles. I'm probably committing some sort of simple fundamental error that I as a java novice do not grasp - any ideas what that is?
Thanks!

-bash-3.00$ java GenPie.class -classpath ...1) Wrong order of command-line parameters. -classpath first, THEN main class
2) (Maybe you typo'd this) The class is GenPie, not GenPie.class -- it's not a file name parameter, but rather a class name.

Similar Messages

  • Runtime error after successful compile and link with cl.exe

    Finally, got the configuration for cl.exe and link.exe right and got a successful compile and link to produce a dll. Then ran the main method of my Java class. The main method calls the constructor, and loading the class runs the static block which loads the native dll. I get one of those error files of the type hs_err_pid4064.log. The file is as follows:
    # An unexpected error has been detected by Java Runtime Environment:
    # Internal Error (0xe06d7363), pid=4064, tid=3576
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C [kernel32.dll+0x12aeb]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x00395800): JavaThread "main" [_thread_in_native, id=3576, stack(0x003b0000,0x00400000)]
    siginfo: ExceptionCode=0xe06d7363, ExceptionInformation=0x19930520 0x003fdf14 0x02de7b04
    Registers:
    EAX=0x003fde4c, EBX=0x00000000, ECX=0x00000000, EDX=0x02f80600
    ESP=0x003fde48, EBP=0x003fde9c, ESI=0x003fdedc, EDI=0x003fdedc
    EIP=0x7c812aeb, EFLAGS=0x00000206
    Top of Stack: (sp=0x003fde48)
    0x003fde48: 02de1de0 e06d7363 00000001 00000000
    0x003fde58: 7c812aeb 00000003 19930520 003fdf14
    0x003fde68: 02de7b04 02e80087 003fdf14 003fdf28
    0x003fde78: 02e99500 00000039 003fde70 00000039
    0x003fde88: 003fdec8 02e81a50 02eabf00 003fdf14
    0x003fde98: 003fdf28 003fdedc 02dce583 e06d7363
    0x003fdea8: 00000001 00000003 003fded0 02a72388
    0x003fdeb8: 00000000 e06d7363 00000001 00000000
    Instructions: (pc=0x7c812aeb)
    0x7c812adb: 8d 7d c4 f3 a5 5f 8d 45 b0 50 ff 15 10 15 80 7c
    0x7c812aeb: 5e c9 c2 10 00 85 ff 0f 8e 36 93 ff ff 8b 55 fc
    Stack: [0x003b0000,0x00400000], sp=0x003fde48, free space=311k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C [kernel32.dll+0x12aeb]
    C [summarizer37.dll+0x1e583]
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::Interpreter
    v ~BufferBlob::StubRoutines (1)
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x02a66000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3108, stack(0x02d10000,0x02d60000)]
    0x02a58000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2488, stack(0x02cc0000,0x02d10000)]
    0x02a56c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=2508, stack(0x02c70000,0x02cc0000)]
    0x02a56000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3720, stack(0x02c20000,0x02c70000)]
    0x02a51800 JavaThread "Finalizer" daemon [_thread_blocked, id=2968, stack(0x02bd0000,0x02c20000)]
    0x02a4d400 JavaThread "Reference Handler" daemon [_thread_blocked, id=600, stack(0x02b80000,0x02bd0000)]
    =>0x00395800 JavaThread "main" [_thread_in_native, id=3576, stack(0x003b0000,0x00400000)]
    Other Threads:
    0x02a4c000 VMThread [stack: 0x02b30000,0x02b80000] [id=2528]
    0x02a67000 WatcherThread [stack: 0x02d60000,0x02db0000] [id=1604]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 960K, used 195K [0x22960000, 0x22a60000, 0x22e40000)
    eden space 896K, 21% used [0x22960000, 0x22990c38, 0x22a40000)
    from space 64K, 0% used [0x22a40000, 0x22a40000, 0x22a50000)
    to space 64K, 0% used [0x22a50000, 0x22a50000, 0x22a60000)
    tenured generation total 4096K, used 0K [0x22e40000, 0x23240000, 0x26960000)
    the space 4096K, 0% used [0x22e40000, 0x22e40000, 0x22e40200, 0x23240000)
    compacting perm gen total 12288K, used 22K [0x26960000, 0x27560000, 0x2a960000)
    the space 12288K, 0% used [0x26960000, 0x269658c8, 0x26965a00, 0x27560000)
    ro space 8192K, 66% used [0x2a960000, 0x2aeb0e10, 0x2aeb1000, 0x2b160000)
    rw space 12288K, 52% used [0x2b160000, 0x2b7b04c8, 0x2b7b0600, 0x2bd60000)
    Dynamic libraries:
    0x00400000 - 0x00423000      C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
    0x7c900000 - 0x7c9af000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f6000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f02000      C:\WINDOWS\system32\RPCRT4.dll
    0x77fe0000 - 0x77ff1000      C:\WINDOWS\system32\Secur32.dll
    0x7e410000 - 0x7e4a1000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f59000      C:\WINDOWS\system32\GDI32.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\msvcr71.dll
    0x6d870000 - 0x6dac0000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\client\jvm.dll
    0x76b40000 - 0x76b6d000      C:\WINDOWS\system32\WINMM.dll
    0x6d320000 - 0x6d328000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d820000 - 0x6d82c000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\verify.dll
    0x6d3c0000 - 0x6d3df000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\java.dll
    0x6d860000 - 0x6d86f000      C:\Program Files\Java\jdk1.6.0_06\jre\bin\zip.dll
    0x10000000 - 0x10006000      D:\Servers\SummarizerServer\native\jsummarizer.dll
    0x02db0000 - 0x02df2000      D:\Servers\SummarizerServer\native\summarizer37.dll
    0x02e00000 - 0x02f6d000      D:\Servers\SummarizerServer\native\platform37.dll
    0x4a800000 - 0x4a893000      D:\Servers\SummarizerServer\native\icuuc30.dll
    0x4ad00000 - 0x4b52d000      D:\Servers\SummarizerServer\native\icudt30.dll
    0x5b860000 - 0x5b8b5000      C:\WINDOWS\system32\NETAPI32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    VM Arguments:
    jvm_args: -Djava.library.path=native
    java_command: com.sra.pipeline.servers.summarizer.JSummarizer
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_06
    CLASSPATH=.;C:\Program Files\Java\jre1.6.0_06\lib\ext\QTJava.zip
    PATH=D:\Servers\SummarizerServer\native;C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT
    USERNAME=Jim Jones
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 3
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2
    Memory: 4k page, physical 1048032k(245796k free), swap 2521804k(1060880k free)
    vm_info: Java HotSpot(TM) Client VM (10.0-b22) for windows-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 01:22:05 by "java_re" with MS VC++ 7.1
    time: Mon Sep 01 15:22:10 2008
    elapsed time: 0 seconds
    The dll I'm wrapping is C++ VC++ compiled.
    Would like to know what I do to trouble-shoot this error and hope to fix it?
    Jim

    Using Java print statement was able to show that the my JNI dll was being loaded and that the problem was in the first call to one of my JNI functions. Then by using "DebugBreak()" in that function and gradually moving it down line by line through the function was able to isolate the line causing the problem. Unfortunately it is the line where I call a function from the dll I'm wrapping. See newer thread.

  • Probably a simple answer; centered links with floating link descriptions, both left and right of the links?

    Attatched is an image of the requested result. I'm new to Dw so this might be an easy bit of code, but with research I haven't been able to find an answer.
    Ideally, the numbers in the middle are links (centered on the page); and the text is a description of the link which floats to either side of the links, but is not necessarily centered; nor linked.
    I would really appreciate the help of someone more knowledgeable. Thanks in advance.
    The code I'm working on follows the image.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>design communications</title>
    <style type="text/css">
    body,td,th {
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      font-weight: lighter;
      font-size: 10px;
      color: #FB6145;
    body {
      background-color: #FFFFFF;
    .strike {
      text-decoration:line-through;
    .links {
      color: #FB6145;
      text-decoration: none
    a:visited {
      text-decoration: none;
      color: #FFA493;
    a:hover {
      cursor: none;
      text-decoration: none;
    a:active {
      text-decoration: none;
    .back-arrow{
      color: #FB6145;
      text-decoration: none;
      font-size: 14px;
    </style>
    <link rel="shortcut icon" href="images/e_rimoldi_favicon_02.ico" type="image/x-icon" />
    <style type="text/css">
    </style>
    </head>
    <body>
    <p><a href="question mark/prefix_0_0.html">? </a></p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <div class="links">
    <p align="center">| <a href="works_03_01_perspective.html" id="01"
    onmouseover=
    "document.getElementById('02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >01</a> |</p>
    <p align="center">| <a href="works_03_03_plan.html" id="02"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >02</a> |</p>
    <p align="center"> | <a href="works_03_02_section.html" id="03"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >03</a> |</p>
    <p align="center">| <a href="works_03_04_mapping.html" id="04"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('back-arrow').className='links';"
    >04</a> |</p>
    <div class="back-arrow">
    <p align="center"><a href="works index_1.0.html" id="back-arrow"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';"
    >«</a></p>
    </div>
    </body>
    </html>

    hey marty,
    Perhaps this updated code will help clarify. I want the links to be centered on the page. But the link descriptions to float to either side? Does that make sense?
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>design communications</title>
    <style type="text/css">
    body,td,th {
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      font-weight: lighter;
      font-size: 10px;
      color: #FB6145;
    body {
      background-color: #FFFFFF;
    .strike {
      text-decoration:line-through;
    .links {
      color: #FB6145;
      text-decoration: none
    a:visited {
      text-decoration: none;
      color: #FFA493;
    a:hover {
      cursor: none;
      text-decoration: none;
    a:active {
      text-decoration: none;
    .back-arrow{
      color: #FB6145;
      text-decoration: none;
      font-size: 14px;
    </style>
    <link rel="shortcut icon" href="images/e_rimoldi_favicon_02.ico" type="image/x-icon" />
    <style type="text/css">
    </style>
    </head>
    <body>
    <p><a href="question mark/prefix_0_0.html">? </a></p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <div class="links">
    <p align="center">| <a href="works_03_01_perspective.html" id="01"
    onmouseover=
    "document.getElementById('02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >01</a> | meddling</p>
    <p align="center"> kongenshus | <a href="works_03_03_plan.html" id="02"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >02</a> |</p>
    <p align="center"> | <a href="works_03_02_section.html" id="03"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '04').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('04').className='links';
    document.getElementById('back-arrow').className='links';"
    >03</a> | design communications</p>
    <p align="center"> green river | <a href="works_03_04_mapping.html" id="04"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( 'back-arrow').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('back-arrow').className='links';"
    >04</a> | utah</p>
    <div class="back-arrow">
    <p align="center"><a href="works index_1.0.html" id="back-arrow"
    onmouseover=
    "document.getElementById('01').className='strike';
    document.getElementById( '02').className='strike';
    document.getElementById( '03').className='strike';
    document.getElementById( '04').className='strike';"
    onmouseout=
    "document.getElementById('01').className='links';
    document.getElementById('02').className='links';
    document.getElementById('03').className='links';
    document.getElementById('04').className='links';"
    >«</a></p>
    </div>
    </body>
    </html>

  • SunStudio 12 Fails to compile template function with template argument

    Hi
    Look at the code below:
    #include <iostream>
    template<class InIt, class OutIt>
    InIt copy_n(InIt first,  typename  std::iterator_traits<InIt>::difference_type  length, OutIt dest)
       for (;length--; ++dest, ++first)
          *dest = *first;
       return first;
    int main()
            char str1[]="Sumit";
            char str2[20];
            copy_n(str1,6,str2);
            std::cout << str2;
            return 0;
    }I have simplified this to pin point the problem, This code dosent compile with SunStudio12 C++ Compiler, (however this works fine on g++ and vc++). The problem is with second parameter
    typename std::iterator_traits<InIt>::difference_type  lengthinstead if we specify any simple type as below, it works fine
    int lengthSuns "http://developers.sun.com/sunstudio/documentation/ss12/whatsnew.html" says :
    Support for the following open-source libraries:
    BOOST http://www.boost.org
    The above code snippet is picked from "boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp" line number 65.
    Any Suggestions or work arounds??+
    The above Suns link also says:
    Complex expressions in template parameters.
    The compiler was previously unable to handle expressions in non-type template arguments in certain cases.
    I did not use any compilation flag, am I missing something?
    Edited by: sumitkumar on May 20, 2008 12:20 PM
    Edited by: sumitkumar on May 20, 2008 12:25 PM
    Edited by: sumitkumar on May 20, 2008 12:25 PM

    >
    Suns "http://developers.sun.com/sunstudio/documentation/ss12/whatsnew.html" says :
    Support for the following open-source libraries:
    BOOST http://www.boost.org
    Boost 1.34.1 should work OK. I haven't tried Boost 1.35 yet.
    The above code snippet is picked from "boost/boost_1_35_0/boost/interprocess/detail/algorithms.hpp" line number 65.
    Any Suggestions or work arounds??+
    The above Suns link also says:
    Complex expressions in template parameters.
    The compiler was previously unable to handle expressions in non-type template arguments in certain cases.
    I did not use any compilation flag, am I missing something?
    Make sure that you compile and link with -library=stlport4, otherwise you will be limited in the Boost libraries that you will be able to use.
    Paul

  • Linking with Xcode!

    Hi
    I'm very frustrated with Xcode here. I came from windows and try to do some development for mac and i have to say documentation is hopeless.
    I'm just wasting my time figuring out the simplest things.
    e.g my codebase needs pnglib - I could build pnglib it, but I can't get my app to use it.
    I have it installed in usr/local..
    Under Visual studio in windows i find it quite straight forward how to add librarys and paths.
    Under Xcode I can't even figure out how to add a simple lib to link with my executable. Where are is this done???
    Also where can I edit the final command line arguments for the compiler?
    So basically I - as a long software developer for windows (also qnx, but just command line tools) - have bloody no chance to get the simplest thing done with macOs Xcode. (I don't wanna go back to windows, but i'm very tired wasting time here, without getting anything done effectivly)
    Also has somebody around here any idea how to get frameworks and more improtantly NIB files to work with cmake tool???
    I'm thankfull for any help! Must be very simple anyway? just wanna tell my project to link with a lib in /usr/local ... ???
    cheers

    thanks, i'll try that!!!
    i build libpng myself sucessfully but could get that linked in any app i tried to use it (there i was able to 'drag' the lib into my frameworks), but always had an eror with some platform traget thing that didn't match. (so it didn;t consider this in the linkinf and then ended up with all png stuff un unresolved symbols)
    anyway so i used a prebuild of pnglib wich i found, this installs by default in usr/.. which is ok for now, as i just want the bloody thing to link, so i can develop further.
    When i get so far that i want to give this to somebody else. Would want to put the lib in the dmg package (which I also haven't figured out how to do that, who to include there, when i press build, and then also link to it .... so if u want to tell me, i will listen ... !!!, then i might also try that !!!)
    thank you
    cheers

  • Linking with gnu libstdc++ using no%Cstd option

    Has anybody had success using (compiling and linking with) the GNU libstdc++ C++ standard library? This would be excluding the use of the Sun supplied Cstd library by using the compile option -library="no%Cstd".
    If so please provide any key details.
    I'm just trying a very simple test program:
    #include <string>
    int main(int argc, char** argv) {
    string s = "Hello";
    The command line to compile is: CC -library="no%Cstd" -lstdc++ test.cc
    Many many compile errors follow. Curiously enough it doesn't seem to find the standard includes at /usr/include, even if I explicity specify in the compiler options.
    Thanks.

    This isnt going to happen. You would have to use -I to point CC at the gcc std header files. They are not going to compile with CC. Furthermore, CC and g++ use different mangling algorithms, so even if you got it to compile, the mangled names that CC emitted would not match the symtab entries in the gcc standard library shared object. And if you managed even more magic to get past this, you would discover that nothing ran, because CC and g++ use different ABI's, i.e. the mechanism by which g++ would propogate an exception would be incomprehensible to code generated by CC, etc. This is actually the underlying reason why the mangling algorithms differ - to explicitly prevent mixing compilers and libraries. Its a sad fact about C++, but you've got to use the same compiler all around, unless you limit yourself to a strict subset at the .so boundry, which is how COM gets around this.

  • [SOLVED] mingw32 cross compile won't link with static libraries

    Hi all,
    I'm trying to cross compile an app I have written to i486-mingw32.  I'm running Arch 64-bit (under which it compiles fine natively), and I have installed the mingw32 binaries along with mingw32-boost-static from AUR.
    All seems well, but unfortunately when I cross compile my code libtool refuses to link to the static Boost libraries:
    *** Warning: Trying to link with static lib archive /usr/i486-mingw32/lib/libboost_filesystem-mt-s.a.
    *** I have the capability to make that library automatically link in when
    *** you link to this library. But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because the file extensions .a of this argument makes me believe
    *** that it is just a static archive that I should not use here.
    This then leads to undefined references as the library is not linked in.  But as I *want* the static version of the library, does anyone know how to tell libtool to accept the .a file and link it?
    Last edited by Malvineous (2011-05-02 02:44:48)

    Just to follow up on this, I discovered the problem.  It turns out libtool was doing the correct thing, and refusing to link the static library in with the shared one (otherwise later this could result in something being defined multiple times.)  The undefined references were unrelated to the error above, and the code that was causing them (in a different Boost header file) could be easily #defined out.
    When the time came to link the actual executables, libtool did include all the necessary libraries and everything worked as it should!

  • Wikiserver strips out links with question marks

    Since installing a fresh copy of yosemite and server 4, I've noticed the wiki server no longer allows links with question marks.
    This makes it impossible to create links that are based on tags
    eg https://myserver/wiki/find?tags=mytag
    I also use the wiki to share links to a auto login page with also needs a question mark.
    Is this something that can be added to the the whitelist ?

    Cheers Linc
    I have sort of got round it by using a link shortening service, not ideal but works for now

  • Deloy a simple Application with own JAR Library

    Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
    Deployment Server is the Integreted Weblogic Server
    I hav a simple ADF BC Application with a own jar Archive.
    In the Deployment Profile i set the JAR file under Application>>Contributes to Deploy
    I Test the Application and throw the Exception
    java.lang.ClassNotFoundException: org.timu.bugzilla.JBug
    How can i deloy the Application with the own JAR File ??

    I'll check this out, but if it is a security problem, then shouldn't I be having problems with other libraries such as the dbutils that I'm using?
    Also, if this is the case should I be seeing occurances of "AccessControlException" in my server log file? All I am getting is ClassDefNotFound.
    Is there any way to package the jar file into my war object so it gets deployed with my application?

  • Compiler Assertion when trying to link with Forte 6 C++

    This is a rather large module, and was compiling and linking just fine until today when some minor code changes went in. Now I get this every time it gets to the linking phase:
    /export1/forte6/SUNWspro/bin/CC -w -G -PIC -mt -DRW_MULTI_THREAD -o /export1/etdev3/libs/solaris-sparc/Debug/libecrs.so ecAssociation.o ecAssociationImp.o ecAssociationRef.o ecAttribute.o ecAttributeImp.o ecBooleanData.o ecBooleanDataType.o ecCommon.o ecData.o ecDateData.o ecDateDataType.o ecDataMaker.o ecDebugOut.o ecDoubleData.o ecDoubleDataType.o ecEnum.o ecEnumData.o ecEnumDataType.o ecEnumImp.o ecException.o ecFloatData.o ecFloatDataType.o ecGUIDManager.o ecGUIDManagerUnix.o ecHistoryItem.o ecIntegerData.o ecIntegerDataType.o ecLongData.o ecLongDataType.o ecMetaAssociation.o ecMetaAssociationImp.o ecMetaAttribute.o ecMetaAttributeImp.o ecMetaBaseClass.o ecMetaDataType.o ecMetaMethod.o ecMetaMethodImp.o ecMetaObject.o ecMetaObjectImp.o ecMetaObjectProperty.o ecMetaObjectPropertyImp.o ecMetaParameter.o ecMetaParameterImp.o ecMetaRole.o ecObject.o ecObjectContainer.o ecObjectData.o ecObjectDataType.o ecObjectImp.o ecObjectInstance.o ecObjectInstanceImp.o ecObjectRef.o ecObjectRefData.o ecParameterList.o ecRepository.o ecRepositoryException.o ecRepositoryImp.o ecRepositoryHeader.o ecRepositoryHeaderImp.o ecRepositoryMgr.o ecRepositoryMgrImp.o ecRepositoryObject.o ECRS.o ecRuntimeClass.o ecShortData.o ecShortDataType.o ecSmartObject.o ecStream.o ecStreamException.o ecStreamImp.o ecString.o ecStringData.o ecStringDataType.o ecTable.o ecTableImp.o ecTableDef.o ecTableInstance.o ecTableInstanceImp.o ecTaskItem.o ecUIntegerData.o ecUIntegerDataType.o ecULongData.o ecULongDataType.o ecUNC.o ecUShortData.o ecUShortDataType.o UpdateDataTypes.o FLT/ecStreamFLT.o XML/ecXMLFile.o XML/ecXMLHandler.o XML/ecXMLRepositoryHandler.o CM/ecRepositoryCM.o CM/ecRepositoryMgrCM.o CM/ecStreamCM.o ZLIB/ecStreamZLib.o
    ** Assertion ** : which_cache != 0 (/set/taz/builds/fcs0406/sparc-S2/lang/cafe/resources/cdr/src/c_filecache.cc: 74)
    Exit 74
    There are no errors during compilation. I have tried removing the SunWS_Cache directory, making clean, etc. It won't go away.
    What causes this? Any idea? Is there a patch to fix this?
    For what it's worth, this is on an UltraSparc 10, running Solaris 2.6. The Forte 6 compiler is installed, and this is all C++ code.

    You get the which_cache!=0 assertion when you run a WorkShop 6 (5.0) compiler, directing the .o into a directory where a later compiler had previously run. Are there both WorkShop 6 (5.0) and Workshop 6 update 1 (5.1) compilers used on the system?
    The C++ Readme says
    <p>
    <pre>
    1. Cache Version Differences May Cause Compilation Errors
    </pre>
    <p>
    <pre>
    When upgrading compilers, it is always good practice
    to run CCadmin -clean on every directory that contains a
    SunWS_cache subdirectory (alternately, you can use rm -rf
    SunWS_cache). Failure to do so can result in compilation
    errors such as the following:
    </pre>
    <p>
    <pre>
    o SunWS_cache: Error: Database version mismatch
    <path>/SunWS_cache/CC_version.
    </pre>
    <p>
    <pre>
    o "<path>/SunWS_cache/CC_state",
    line 3: Error: "" not allowed here.
    ** Assertion ** : 0
    </pre>
    Note: when you do CCadmin -clean or rm -rf SunWS_cache, make sure you
    are in the same directory where you created (not moved) the objects.
    Note: The -ptr option is no longer valid. In WorkShop 6 it was a noop.
    In WorkShop 6 update 1, it is outright rejected.
    If you use -ptr to direct the .o file, it won't work, and a .o created by a 5.0 compiler might wind up in an unexpected place, where a 5.1 compiler had been run.
    Another possibility is that the build process does not use the same
    compiler in all steps. This can happen in builds where a needed macro was not passed down from a parent to a child makefile, and different compilers participated in a single build.

  • Compiled Tomcat Servlet Example & got JAR, not WAR?

    Is there a basic reference on how to create a simple servlet with NetBeans 4.1 and deploy it to Tomcat?
    When I created the project I chose Samples->Web->Tomcat Servlet Example, and yet it does not create a WAR file on compilation.
    And of course once I'm past that I have to figure out how to edit the XML file, I gather.
    I need a reference that will hold me by the hand and walk me through it once to kick start me.
    After that I think I can make it without having to ask such newbie questions.

    Hi,
    not sure to what extent you are clear in build.xml file (done thru ant).
    what i can tell you is, ant creates any archive file (be it .jar, .war, .ear) with the tasks named "jar" (<jar jarfile="yourfilename.jar"..>), "war" and "ear". But both war and ear are the extensions of the jar only.
    You can achieve creation of any archive file with the jar task itself.
    you need to take care of the following...
    (1) you can /should edit the extension of the files at every stage.. first .jar and then .war and then .ear (if necessary) => basic flow
    (2) at every step, you have to have a file inclusion inside the corresponding archive file..
    say for example, for a .jar file you should include all the compiled .class files, and ejb-jar.xml (incase you use ejbs) and other built-in jar files....
    In case of .war files (web archive) you should include the web.xml file, any static files (html, jsp etc), any tld files - it goes with your application's nature and requirement.....
    fyi, i m including a sample build.xml file which i use for a webapplication, so it deals with war...
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="ServletsReqDispFwd" default="deploy">
         <property name="top" value="."/>
         <property name="webinf" value="${top}/WEB-INF"/>
         <property name="lib" value="${webinf}/lib"></property>
         <property name="classes" value="WEB-INF/classes"/>
         <property name="jboss.dir" value="D:\jboss-3.2.2RC3\server\default\deploy"></property>
         <property name="tomcat.dir" value="D:\jakarta-tomcat-4.1.27\webapps"></property>
         <property name="warfile" value="ServletsReqDispFwd.war"></property>
         <property name="src" value="${top}/src"/>
         <property name="web.xml" value="WEB-INF/web.xml"/>
         <target name="package">
              <javac srcdir="${src}" destdir="${classes}"
                     listfiles="true" debug="true"  verbose="true"
                          classpath="${lib}/*.jar"/>
              <war warfile="${warfile}" webxml="${web.xml}">
                   <webinf dir="${top}">
                        <include name="**/*web*.xml"/>
                        <include name="**/*application*.xml"/>
                        <exclude name="src/**/*.xml"/>
                   </webinf>
                   <lib dir="${lib}">
                        <include name="*.jar"/>
                   </lib>
                   <fileset dir="." includes="**/*.html"/>                    
                   <classes dir="${classes}" includes="**/*.class"></classes>                         
              </war>
         </target>
         <target name="deploy" depends="clean,package">
              <copy file="${warfile}" todir="${tomcat.dir}" overwrite="true"></copy>
         </target>
         <target name="clean">
                <delete dir="${classes}">
                     <filename name="*.class"/>
              </delete>
              <delete>
                   <fileset dir="${top}" includes="${warfile}"/>
              </delete>
              <delete>
                   <fileset dir="${tomcat.dir}" includes="${warfile}"/>
              </delete>
         </target>
    </project>hope this contribues to a certain extent to help you edit the buildfile (xml file as you go) to meet your requirement.....

  • Error in compiling RW libs with g++

    Hi All,
    I am trying to port one project from Solaris (CC) to gcc, which uses RWlibs (of Tools.h++ which comes along with the sunstudio package).
    I am working on RHEL 5.4.
    As a first step i am trying my hand with the following simple program:
    #include <iostream>
    #include <rw/cstring.h>
    int main(){
      RWCString a("TEST Program compiled successfully with gcc");
      std::cout << a << std::endl;
      return 0;
    }when i tried to compile the above sample program i got the following:
    $ g++ -Wall -g rwstring.cc -I/app/sunstudio12/prod/include/CC/rw7
    /app/sunstudio12/prod/include/CC/rw7/rw/generic.h:80: error: ISO C++ forbids declaration of ‘genericerror’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/rstream.h:46: error: expected initializer before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:378: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:378: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:379: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:379: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:381: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:381: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:382: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:382: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:383: error: ISO C++ forbids declaration of ‘istream’ with no type
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:383: error: expected ‘;’ before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:480: error: expected constructor, destructor, or type conversion before ‘&’ token
    /app/sunstudio12/prod/include/CC/rw7/rw/cstring.h:481: error: expected constructor, destructor, or type conversion before ‘&’ tokenAny help/suggestions is appreciated.
    Thanks in advance,
    14341

    RW Tools.h++ is a very old product, which has not had significant updates in many years. Most of the functionality in RW Tools.h++ is available in other libraries, although the programming interface is different. (That is, if you have code written for RW Tools.h++, it will need to be re-written.) You can buy the library from Rogue Wave (roguewave.com) if you want to use it with g++ or other compilers.
    Much of the functionality of RW Tools.h++ is in the C++ Standard library. The Boost libraries are a good addition for anything else that you need.
    The SGI STL and the Apache stdcxx libraries are replacements for the C++ standard library that comes with your C++ compiler. If you download one of these libraries, you will have quite an adventure getting it to build and work correctly with the Studio C++ compiler. But we have already done that work for you. The -library=stlport4 option picks up the STLport version of the SGI STL, and it comes with the compiler. The Apache stdcxx library is available with Solaris 11 for use with Studio C++. Install it in the default locations (in /usr/include and /usr/lib), and use the -library=stdcxx4 option for compiling and linking. Refer to the C++ Users Guide for details about using these alternative libraries.
    For g++, using the SGI STL is not a good idea. You can use Apache stdcxx if you want, but the standard library that comes with g++ is a good one, so I would not recommend replacing it unless you have a specific reason.
    Boost works very well with g++, since it is developed with and tested with g++. Be sure to check your g++ version with any notes about compilers in the version of Boost that you get.

  • Simple performance question

    Simple performance question. the simplest way possible, assume
    I have a int[][][][][] matrix, and a boolean add. The array is several dimensions long.
    When add is true, I must add a constant value to each element in the array.
    When add is false, I must subtract a constant value to each element in the array.
    Assume this is very hot code, i.e. it is called very often. How expensive is the condition checking? I present the two scenarios.
    private void process(){
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             if (add)
             matrix[i][ii][iii][...]  += constant;
             else
             matrix[i][ii][iii][...]  -= constant;
    private void process(){
      if (add)
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             matrix[i][ii][iii][...]  += constant;
    else
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
           matrix[i][ii][iii][...]  -= constant;
    }Is the second scenario worth a significant performance boost? Without understanding how the compilers generates executable code, it seems that in the first case, n^d conditions are checked, whereas in the second, only 1. It is however, less elegant, but I am willing to do it for a significant improvement.

    erjoalgo wrote:
    I guess my real question is, will the compiler optimize the condition check out when it realizes the boolean value will not change through these iterations, and if it does not, is it worth doing that micro optimization?Almost certainly not; the main reason being that
    matrix[i][ii][iii][...]  +/-= constantis liable to take many times longer than the condition check, and you can't avoid it. That said, Mel's suggestion is probably the best.
    but I will follow amickr advice and not worry about it.Good idea. Saves you getting flamed with all the quotes about premature optimization.
    Winston

  • How different fields linked with Application Utilities Lookups

    Hi,
    I need to know how different fields at different forms are linked with utilities lookups and pick the values(meaning)?
    For example #1;
    at Organization form, Type of organization is must to define, value of Type comes from Utilities lookups. Type field name is ORGANIZATION_TYPE (Help ---Diagonestics --- Examine), if we try to search the ORGANIZATION_TYPE in utilities lookups we will not find it, we will find if we enter in front of type ORG_TYPE and search then system displays all the codes and meanings defined in the system.
    #2;
    at People -- Additional Information form, Nationality is defined which is picked up from utilities lookups. Nationality field name is LOC_ITEM08 (Help ---Diagonestics --- Examine), if we try to search the LOC_ITEM08 in utilities lookups we will not find it, we will find if we enter in front of type NATIONALITY and search then system displays all the codes and meanings defined in the system for different nationalities.
    my question, what's the relationship b/w
    ORGANIZATION_TYPE to ORG_TYPE
    LOC_ITEM08 to NATIONALITY
    I hope that my question is simple and you guys understand it. Please reply soon.
    Regards,

    Hi
    There is no link between the block/field name you see in help->examine and the application utilities lookup type. I'm afraid this is just something you have to learn as you go!
    Regards
    Tim

  • Conflict of weblogic with jaas.jar

    Hi there,
    I am using weblogic6.0+sp1 for JAAS simple and SSL authentication. Sun's
    implementation class com.sun.security.auth.login.ConfigFile in jaas.jar
    is conflict with the Config class I implemented that extends
    Configuration to parse the login policy file and return the array of
    AppConfigurationEntry. If this jaas.jar gets picked up before
    weblogic.jar (For some jdk version, this jar is put under the jdk's
    lib/ext directory) the sun's implementation will be picked up instead of
    mine and this will results in failure. I am wandering if this is a bug
    or not?
    Thanks,
    Cathy

    This has nothing to do with the class name, since both my implementation and
    sun's are subclass of Configuration class. Runtime, it will pick up sun's if
    jaas.jar is put in front of weblogic.jar.
    Hellen Andersen wrote:
    An aside related question: isn't jaas.jar always installed in lib/ext?
    Otherwise, couldn't you rename your ConfigFile class so it doesn't match
    Sun's?
    "Cathy Wei" <[email protected]> wrote in message
    news:[email protected]..
    Hi there,
    I am using weblogic6.0+sp1 for JAAS simple and SSL authentication. Sun's
    implementation class com.sun.security.auth.login.ConfigFile in jaas.jar
    is conflict with the Config class I implemented that extends
    Configuration to parse the login policy file and return the array of
    AppConfigurationEntry. If this jaas.jar gets picked up before
    weblogic.jar (For some jdk version, this jar is put under the jdk's
    lib/ext directory) the sun's implementation will be picked up instead of
    mine and this will results in failure. I am wandering if this is a bug
    or not?
    Thanks,
    Cathy

Maybe you are looking for

  • Proforma invoice for STO

    Hi, In STO consignment, the process is like this: STO purchase order, Delivery, PGI, InterCompany billing (IV billing type) The Delivery type is NK (Replen.Del.Consignmt) and the delivery item category is NKN (TF Consgmt Lending). I want to change th

  • No networked devices / assets in ZAM

    Hi all seeing this request again and again to manage non networked assets e.g. beamers, usb-disks, mobile devices etc. anyone aware if something like this really comes with ZAM? and YES already made a enhancement request ;-) cheers whenz

  • Add field group to Asset Master Data Screen Layout

    Hi Gurus !! Does anybody know how to add field group in SPRO(Define Screen Layout for Asset Master Data)?. I have created my layout by coping 1000, but then I need to add Fund Center in Time-Dependent data logical field group. Thanks a lot, Sasha

  • Is there anywhere I can download acrobat 9 standard?

    Is there anywhere I can go to download Acrobat 9 Standard? I see Professional in the Adobe website but not Standard. Thank you in advance

  • Sorting the Search Result of IndexBased Search Result

    Hi , I am using Index based search to get the result from the Index. I am trying to get the search result with sorting order of modified date. I found there is an API to get but I could able to understand How to use that API. If any body knows please