Se corrige un error y se sube un ejecutable

This commit is contained in:
Ryuuji159
2016-11-02 06:31:45 +01:00
parent 786b3925fb
commit 2a97a81749
7 changed files with 16 additions and 7 deletions

BIN
P.A.M.jar Executable file

Binary file not shown.

BIN
bin/main/Main.class Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

9
src/main/Main.java Normal file
View File

@@ -0,0 +1,9 @@
package main;
public class Main
{
public static void main(String[] args)
{
visual.Login login = new visual.Login();
}
}

View File

@@ -34,10 +34,14 @@ public class Archivo
String os = System.getProperty("os.name"); String os = System.getProperty("os.name");
if (os.contains("Windows")) if (os.contains("Windows"))
{ {
ruta = "C:\\P.A.M\\" + archivo; ruta = "C:\\P.A.M\\";
new File(ruta).mkdir();
ruta+= archivo;
} else if (os.contains("Linux")) } else if (os.contains("Linux"))
{ {
ruta = System.getProperty("user.home") + "/P.A.M/" + archivo; ruta = System.getProperty("user.home") + "/P.A.M/";
new File(ruta).mkdir();
ruta += archivo;
} }
return ruta; return ruta;
} }

View File

@@ -181,9 +181,5 @@ public class Login{
Registro registro = new Registro(); Registro registro = new Registro();
frame.dispose(); frame.dispose();
} }
public static void main(String args[]) {
Login ventana = new Login();
}
} }