Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. stefanwagner

    Java is a huge cup of coffee!

    Can you please cite the message of Netbeans in it's wording? don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  2. stefanwagner

    java.lang.NullPointerException

    Show us the code. don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  3. stefanwagner

    Remove two first characters of filenames

    for f in *; do mv "$f" "${f#??}"; done would even work with blanks in filenames. @razalas: rename the files, not just viewieng the modified names. don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  4. stefanwagner

    Open an access database on a windows machine from Linux

    You can open it with every hex-editor, like `od`. You need some daemon to get access (network~), like `sshd`. The task manager doesn't open files on its own, does he? I don't know about graphical daemons; VNC is a protocoll, used on Linux, to view a remote desktop. Another idea is to share...
  5. stefanwagner

    mylib.JAR - where do I put "images"-folder ?

    import java.net.URL; import javax.swing.ImageIcon; import javax.swing.*; public class Resource extends JFrame { public Resource () { super ("super"); JButton jp = new JButton (getImage ()); getContentPane ().add (jp); setVisible (true); } public static ImageIcon getImage () {...
  6. stefanwagner

    number sorting problem

    Sorting from the back: :) rev /path/to/input | sort -n -k 3 | rev don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  7. stefanwagner

    command to find certain words in a file searching after another word

    Or this way: grep -hA1 beat * | grep Elapsed A1: + 1 following line h: without filename don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  8. stefanwagner

    Insert newline after certain number of fields in long line

    This simple command will put a newline before your first line, and keep the , at the end of line: sed 's/\([A-Z]\+,\)/\n\1/g' FILE It searches for Alpha-Chars, and inserts a newline before. This is the not so simple command: sed 's/\(\([A-Z0-9.*]\+,\)\{13\}\)\([A-Z0-9]\+\),/\1\3\n/g' FILE...
  9. stefanwagner

    Opening a ".jar" File - Exception Error

    Well it was always noted, that this package wouldn't be supported, afaik you weren't even allowed to ship it with the JRE and it didn't came with the JRE. I don't know what happens if you use it as jar with a recent JVM. If you still have a 1.3 Java, read the License agreement. don't visit...
  10. stefanwagner

    Reading a C extract from Java

    Are you writing the data yourself? Write it in a simple, human-readable way, if possible. For a repetitive structure use CSV, for changing structures use XML. Binary data is hard to debug. don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  11. stefanwagner

    Opening a ".jar" File - Exception Error

    My claim still is: If you have a compiled program which runs on java-1.3 it will run on java-1.6. You say I would need to change the classpath in a shell script which launches the jar/ the Java-program from the jar? If it isn't just a CLASSPATH issue, I would like to receive such a jar or...
  12. stefanwagner

    how to wait n seconds for Runtime.getRuntime.exec() to execute

    You should start the external program in a seperate thread, and then you may wait in the main thread for 10 s. Maybe you can kill the separate thread, if it didn't finish from there; at least continue your work. don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  13. stefanwagner

    how to open and import files in Zeves within Java

    If there is no file, how should it be opened from java? don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  14. stefanwagner

    Opening a ".jar" File - Exception Error

    Well, Diancecht, I respect you for a lot of helpful hints here, but: "Or progamos using reserved word as variable names (enum)" wont hurt for a compiled program. If you liked to recompile it for 1.6, then you have to do something. Else it would run, I guess, on 1.6 without problems. I'm not...
  15. stefanwagner

    how to open and import files in Zeves within Java

    I'm sorry, the formatting was broken, and I didn't realize it. You shall write your 3 strings, masked with ", the first being the full path of pythonw.exe, the second the python script toplevel.pyw and the third one the tex-file, where ether it is. "C:\Python23\pythonw.exe" "C:\Program Files...
  16. stefanwagner

    Opening a ".jar" File - Exception Error

    You don't know a name, don't know the version, what do you know? IBM isn't able to support a useful application? Come on! I like to see a downloadable example which I can test myself. A lot of the users here don't know the difference between Java and JavaScript. don't visit my homepage...
  17. stefanwagner

    how to open and import files in Zeves within Java

    Your file is constantly changing. Now in C:/Users/USER/Desktop, before in C:\Users\irou\Desktop\exemple.tex - where is it? As far as I understand String[] cmd = { "C:\\Python23\\pythonw.exe", "C:\\Program Files (x86)\\Z-Eves 2.3.1\\gui\\toplevel.pyw", is correct so far? In the...
  18. stefanwagner

    read and change string

    sed 's/aa.*/aa 88 80/' file Save the output to a new file: sed 's/aa.*/aa 88 80/' file > new.file change in place: sed -i 's/aa.*/aa 88 80/' file don't visit my homepage: http://home.arcor.de/hirnstrom/minis/index.html
  19. stefanwagner

    how to open and import files in Zeves within Java

    @irou: How could you start your program from the windows shell? pythonw "C:\\Program Files (x86)\\Z-Eves 2.3.1\\gui\\toplevel.py" "C:\Users\irou\Desktop\exemple.tex" @tsuji: You mean that pythonw needs the masking? Maybe. On Linux I open the file in "Ubuntu One" simply like this: String[]...
  20. stefanwagner

    how to open and import files in Zeves within Java

    @tsuj: If you have a Program a.exe and want to pass as argument a file b.txt, maybe using an option "-x 3", and you put it into one, big String, then you have to take care to mask your blanks: "c:/program files/a.exe -x 3 d:/my data/b.txt" will not work. But if you put every part in a...

Part and Inventory Search

Back
Top