Download
Entwicklung
Konto
Download
Entwicklung
Anmelden
Vergessen Konto/Passwort
Konto erstellen
Sprache
Hilfe
Sprache
Hilfe
×
Anmelden
Anmeldename
Passwort
×
Vergessen Konto/Passwort
Übersetzungsstatus von Deutsch
Kategorie:
Software
Personen
PersonalForge
Magazine
Wiki
Suche
OSDN
>
Finden Software
>
Software Development
>
Interpreters
>
Mysaifu JVM
>
Ticket-Liste / Suche
>
Ticket #12327
Mysaifu JVM
Beschreibung
Projekt Zusammenfassung
Entwickler-Dashboard
Web-Seite
Entwickler
Bildergalerie
RSS Feed-Liste
Aktivität
Statistiken
Historie
Downloads
Aller Releases-Liste
Statistiken
Quellcode
Quellcode-Repositorys-Liste
Subversion
Repository ansehen
Ticket
Ticket-Liste
Liste der Meilensteine
Typenliste
Komponentenliste
Liste der zuletzt benutzten Tickets/RSS
Neue Ticket abschicken
Dokumente
Kommunikation
Alle Mailinglisten
mysaifujvm-announce
Neuigkeiten
Ticket #12327
Ticket-Liste
Neue Ticket abschicken
RSS
Get the current directory - Doesn't Work
Eröffnet am:
2008-04-10 11:47
Letztes Update:
2008-04-17 08:08
beobachte
ON
OFF
Auswertung:
(Anonym)
Verantwortlicher:
freebeans
Typ:
Fehler
Status:
Geschlossen
Komponente:
v0.3.6
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Won't Fix
Datei:
Keine
Details
The following code sample should return the current
directory of the running JAR file, however, mysaifu
always returns the root directory "\."
http://www.rgagnon.com/javadetails/java-0076.html
import java.io.File;
public class CurrentDir {
public static void main (String args[]) {
File dir1 = new File (".");
File dir2 = new File ("..");
try {
System.out.println ("Current dir : " +
dir1.getCanonicalPath());
System.out.println ("Parent dir : " +
dir2.getCanonicalPath());
}
catch(Exception e) {
e.printStackTrace();
}
}
}
Ticket-Verlauf (1/1 Historien)
2008-04-17 08:08
Aktualisiert von:
freebeans
Ticket Close date
is changed to
2008-04-17 08:08
Verantwortlicher
Update from
(Keine)
to
freebeans
Lösung
Update from
Keine
to
Won't Fix
Status
Update from
Offen
to
Geschlossen
Kommentar
Logged In: YES
user_id=14530
Windows Mobile does not support "current directory".
If you want to set the current directory, please set
Options/General tab or -setcwd command line option.
http://www2s.biglobe.ne.jp/~dat/java/project/jvm/usage_en.ht
ml
Dateianhangliste (
0
)
Dateianhangliste
Keine Anhänge
Bearbeiten
Please login to add comment to this ticket »
Anmelden
directory of the running JAR file, however, mysaifu
always returns the root directory "\."
http://www.rgagnon.com/javadetails/java-0076.html
import java.io.File;
public class CurrentDir {
public static void main (String args[]) {
File dir1 = new File (".");
File dir2 = new File ("..");
try {
System.out.println ("Current dir : " +
dir1.getCanonicalPath());
System.out.println ("Parent dir : " +
dir2.getCanonicalPath());
}
catch(Exception e) {
e.printStackTrace();
}
}
}