| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -310,12 +310,10 @@ public static void initRequirements() { | |||
| 310 | 310 | try { | |
| 311 | 311 | Class.forName("com.sun.jdi.VirtualMachine"); | |
| 312 | 312 | } catch (ClassNotFoundException cnfe) { | |
| 313 | - //Base.showPlatforms(); | ||
| 314 | - //static public void showPlatforms() { | ||
| 315 | 313 | Base.openURL("http://wiki.processing.org/w/Supported_Platforms"); | |
| 316 | - Base.showError("Please install JDK 1.5 or later", | ||
| 314 | + Base.showError("Please install JDK 1.6 or later", | ||
| 317 | 315 | "Processing requires a full JDK (not just a JRE)\n" + | |
| 318 | - "to run. Please install JDK 1.5 or later.\n" + | ||
| 316 | + "to run. Please install JDK 1.6 or later.\n" + | ||
| 319 | 317 | "More information can be found in the reference.", cnfe); | |
| 320 | 318 | } | |
| 321 | 319 | } | |
@@ -373,29 +371,25 @@ public Base(String[] args) { | |||
| 373 | 371 | ||
| 374 | 372 | libraryManagerFrame = new ContributionManagerDialog("Library Manager", | |
| 375 | 373 | new ContributionListing.Filter() { | |
| 376 | - | ||
| 377 | 374 | public boolean matches(Contribution contrib) { | |
| 378 | 375 | return contrib.getType() == Contribution.Type.LIBRARY | |
| 379 | 376 | || contrib.getType() == Contribution.Type.LIBRARY_COMPILATION; | |
| 380 | 377 | } | |
| 381 | 378 | }); | |
| 382 | 379 | toolManagerFrame = new ContributionManagerDialog("Tool Manager", | |
| 383 | 380 | new ContributionListing.Filter() { | |
| 384 | - | ||
| 385 | 381 | public boolean matches(Contribution contrib) { | |
| 386 | 382 | return contrib.getType() == Contribution.Type.TOOL; | |
| 387 | 383 | } | |
| 388 | 384 | }); | |
| 389 | 385 | modeManagerFrame = new ContributionManagerDialog("Mode Manager", | |
| 390 | 386 | new ContributionListing.Filter() { | |
| 391 | - | ||
| 392 | 387 | public boolean matches(Contribution contrib) { | |
| 393 | 388 | return contrib.getType() == Contribution.Type.MODE; | |
| 394 | 389 | } | |
| 395 | 390 | }); | |
| 396 | 391 | updateManagerFrame = new ContributionManagerDialog("Update Manager", | |
| 397 | 392 | new ContributionListing.Filter() { | |
| 398 | - | ||
| 399 | 393 | public boolean matches(Contribution contrib) { | |
| 400 | 394 | if (contrib instanceof InstalledContribution) { | |
| 401 | 395 | return ContributionListing.getInstance().hasUpdates(contrib); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1325,6 +1325,16 @@ private boolean exportApplication(File destFolder, | |||
| 1325 | 1325 | runOptions += " -Xmx" + | |
| 1326 | 1326 | Preferences.get("run.options.memory.maximum") + "m"; | |
| 1327 | 1327 | } | |
| 1328 | + if (exportPlatform == PConstants.MACOSX) { | ||
| 1329 | + // If no bits specified (libs are all universal, or no native libs) | ||
| 1330 | + // then exportBits will be 0, and can be controlled via "Get Info". | ||
| 1331 | + // Otherwise, need to specify the bits as a VM option. | ||
| 1332 | + if (exportBits == 32) { | ||
| 1333 | + runOptions += " -d32"; | ||
| 1334 | + } else if (exportBits == 64) { | ||
| 1335 | + runOptions += " -d64"; | ||
| 1336 | + } | ||
| 1337 | + } | ||
| 1328 | 1338 | ||
| 1329 | 1339 | /// macosx: write out Info.plist (template for classpath, etc) | |
| 1330 | 1340 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,22 +69,16 @@ | |||
| 69 | 69 | <key>MainClass</key> | |
| 70 | 70 | <string>processing.app.Base</string> | |
| 71 | 71 | ||
| 72 | + <!-- As of 2.0a2 we are now requiring Java 1.6 --> | ||
| 72 | 73 | <key>JVMVersion</key> | |
| 73 | - <string>1.5+</string> | ||
| 74 | + <string>1.6*</string> | ||
| 74 | 75 | ||
| 75 | 76 | <key>ClassPath</key> | |
| 76 | 77 | <!-- In 0149, removed /System/Library/Java from the CLASSPATH because | |
| 77 | 78 | it can cause problems if users have installed weird files there. | |
| 78 | 79 | http://dev.processing.org/bugs/show_bug.cgi?id=1045 --> | |
| 79 | 80 | <string>$JAVAROOT/pde.jar:$JAVAROOT/core.jar:$JAVAROOT/ant.jar:$JAVAROOT/ant-launcher.jar:$JAVAROOT/antlr.jar:$JAVAROOT/ecj.jar:$JAVAROOT/jna.jar:$JAVAROOT/quaqua.jar</string> | |
| 80 | 81 | ||
| 81 | - <key>JVMArchs</key> | ||
| 82 | - <array> | ||
| 83 | - <!-- <string>x86_64</string> --> <!-- currently no 64 bit support --> | ||
| 84 | - <string>i386</string> | ||
| 85 | - <string>ppc</string> | ||
| 86 | - </array> | ||
| 87 | - | ||
| 88 | 82 | <!-- More properties can be found in http://developer.apple.com/releasenotes/Java/java141/system_properties/chapter_4_section_1.html#//apple_ref/doc/uid/TP30000285 --> | |
| 89 | 83 | <key>Properties</key> | |
| 90 | 84 | <dict> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,19 @@ | |||
| 1 | + PROCESSING 2.0a2 (REV 0201) - 31 October 2011 | ||
| 2 | + | ||
| 3 | + Happy Halloween! I'll be dressing up as an ArrayIndexOutOfBoundsException. | ||
| 4 | + | ||
| 5 | + This release is primarily focused on the new video library and making it | ||
| 6 | + usable across platforms. It also has some changes for how applications | ||
| 7 | + are exported, and a number of other bug fixes and tweaks. | ||
| 8 | + | ||
| 9 | + [ about those changes ] | ||
| 10 | + | ||
| 11 | + | ||
| 12 | + | ||
| 13 | + | ||
| 14 | + . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . | ||
| 15 | + | ||
| 16 | + | ||
| 1 | 17 | PROCESSING 2.0a1 (REV 0200) - 2 September 2011 | |
| 2 | 18 | ||
| 3 | 19 | First alpha release as we head toward 2.0. Please read the changes page | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -308,6 +308,7 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) | |||
| 308 | 308 | strcpy(executable, "javaw.exe"); | |
| 309 | 309 | } | |
| 310 | 310 | ||
| 311 | + /* | ||
| 311 | 312 | SHELLEXECUTEINFO ShExecInfo; | |
| 312 | 313 | ||
| 313 | 314 | //MessageBox(NULL, executable, outgoing_cmd_line, MB_OK); | |
@@ -352,7 +353,44 @@ WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) | |||
| 352 | 353 | break; | |
| 353 | 354 | } | |
| 354 | 355 | } | |
| 356 | + | ||
| 355 | 357 | return 0; | |
| 358 | + */ | ||
| 359 | + | ||
| 360 | + PROCESS_INFORMATION pi; | ||
| 361 | + memset(&pi, 0, sizeof(pi)); | ||
| 362 | + STARTUPINFO si; | ||
| 363 | + memset(&si, 0, sizeof(si)); | ||
| 364 | + si.cb = sizeof(si); | ||
| 365 | + int wait = 0; | ||
| 366 | + | ||
| 367 | + DWORD dwExitCode = -1; | ||
| 368 | + char cmdline[32768]; | ||
| 369 | + //executable; | ||
| 370 | + //outgoing_cmd_line; | ||
| 371 | + //exe_directory; | ||
| 372 | + strcpy(cmdline, "\""); | ||
| 373 | + strcat(cmdline, executable); | ||
| 374 | + strcat(cmdline, "\" "); | ||
| 375 | + strcat(cmdline, outgoing_cmd_line); | ||
| 376 | + | ||
| 377 | + if (CreateProcess(NULL, cmdline, NULL, NULL, | ||
| 378 | + //TRUE, priority, NULL, NULL, | ||
| 379 | + TRUE, 0, NULL, exe_directory, | ||
| 380 | + &si, &pi)) { | ||
| 381 | + if (wait) { | ||
| 382 | + WaitForSingleObject(pi.hProcess, INFINITE); | ||
| 383 | + GetExitCodeProcess(pi.hProcess, &dwExitCode); | ||
| 384 | + //debug("Exit code:\t%d\n", dwExitCode); | ||
| 385 | + //closeHandles(); | ||
| 386 | + char[128] big_trouble; | ||
| 387 | + sprintf(big_trouble, "Sorry, could not launch. (Error %d)", dwExitCode); | ||
| 388 | + MessageBox(NULL, big_trouble, "Apologies", MB_OK); | ||
| 389 | + } else { | ||
| 390 | + dwExitCode = 0; | ||
| 391 | + } | ||
| 392 | + } | ||
| 393 | + return dwExitCode; | ||
| 356 | 394 | } | |
| 357 | 395 | ||
| 358 | 396 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,7 +25,7 @@ | |||
| 25 | 25 | </classPath> | |
| 26 | 26 | <jre> | |
| 27 | 27 | <path>java</path> | |
| 28 | - <minVersion>1.5.0</minVersion> | ||
| 28 | + <minVersion>1.6.0</minVersion> | ||
| 29 | 29 | <maxVersion></maxVersion> | |
| 30 | 30 | <jdkPreference>jdkOnly</jdkPreference> | |
| 31 | 31 | <opt>-Xms128m -Xmx128m</opt> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,28 +27,17 @@ | |||
| 27 | 27 | <key>LSUIPresentationMode</key> | |
| 28 | 28 | <integer>@@lsuipresentationmode@@</integer> | |
| 29 | 29 | ||
| 30 | - <!-- make sure that applications open in 32-bit mode on Snow Leopard, | ||
| 31 | - otherwise video and most other native libraries will choke | ||
| 32 | - http://developer.apple.com/mac/library/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW1 --> | ||
| 33 | - <key>LSArchitecturePriority</key> | ||
| 34 | - <array> | ||
| 35 | - <string>i386</string> | ||
| 36 | - <string>ppc</string> | ||
| 37 | - </array> | ||
| 38 | - | ||
| 39 | 30 | <key>Java</key> | |
| 40 | 31 | <dict> | |
| 41 | 32 | <key>VMOptions</key> | |
| 42 | 33 | <string>@@vmoptions@@</string> | |
| 34 | + | ||
| 43 | 35 | <key>MainClass</key> | |
| 44 | 36 | <string>@@sketch@@</string> | |
| 37 | + | ||
| 45 | 38 | <key>JVMVersion</key> | |
| 46 | - <string>1.5*</string> | ||
| 47 | - <key>JVMArchs</key> | ||
| 48 | - <array> | ||
| 49 | - <string>i386</string> | ||
| 50 | - <string>ppc</string> | ||
| 51 | - </array> | ||
| 39 | + <string>1.6*</string> | ||
| 40 | + | ||
| 52 | 41 | <key>ClassPath</key> | |
| 53 | 42 | <string>@@classpath@@</string> | |
| 54 | 43 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,11 @@ X on Windows, move the exported DLLs et al inside 'lib' | |||
| 10 | 10 | X requires change to export/launcher.cpp to include the exe dir | |
| 11 | 11 | _ this will cause trouble with ... | |
| 12 | 12 | X change Linux script to handle the 'lib' dir as part of the lib path | |
| 13 | + X changed Mac OS X launchers, also requiring Java 1.6. | ||
| 14 | + | ||
| 15 | + // If no bits specified (libs are all universal, or no native libs) | ||
| 16 | + // then exportBits will be 0, and can be controlled via "Get Info". | ||
| 17 | + // Otherwise, need to specify the bits as a VM option. | ||
| 13 | 18 | ||
| 14 | 19 | _ add a preferences option for whether to run in 32 or 64-bit | |
| 15 | 20 | _ also make note of when library is not available (serial) with error msg | |
| Back | FazBrowse Home | New Git URL |
0 commit comments