Error while compiling
Hi, I actually don't know if this is a newby question or an experienced question, but here it goes.
Here is a chunk of my code I'm currently programming:
if(e.getSource()==write){
FileDialog filedialog =new FileDialog(Sudoku2.this,"Opslaan van Sudoku",FileDialog.SAVE);
filedialog.show();
String filenaam = filedialog.getFile(), directorynaam = filedialog.getDirectory();
if(filenaam !=null){
PrintWriter uit =null;
try{
uit =new PrintWriter(new BufferedWriter(new FileWriter(""+directorynaam+filenaam,false)));
}
catch( IOException fout){
System.out.println("Woeps!! Foutje bij printwriter!");
}
if(uit !=null){
for(int i = 0; i < aantal; i++){
for(int j = 0; j < aantal; j++){
if(invoerveld[i][j].getText().length() == 1){
uit.print(invoerveld[i][j].getText()+" ");
}
else uit.print("* ");
}
uit.newLine();
}
uit.close();
}
if(uit.checkError()) System.out.println("Foutje moet kunnen baas ... fault in printwriter!");
}
}
Now I get this error while compiling from JCreator:
newLine() has private access in java.io.PrintWriter
I realy don't know what they are talking about. I imported java.io.* so that isn't the issue. Can some one help me with this? Thanks anyway
[2609 byte] By [
Daffna] at [2007-10-3 3:35:36]

O.K., thanks thats one thing that works now. But I got another error while testing my program. It has something to do with the FileWriter. It's the first time that I'm using this in a program. It gave me this gigantic error:
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x807824F
Function=[Unknown.]
Library=C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(WToolkit.java:262)
at java.lang.Thread.run(Thread.java:534)
Dynamic libraries:
0x00400000 - 0x0040B000 C:\j2sdk1.4.2_05\bin\java.exe
0x7C900000 - 0x7C9B6000 C:\WINDOWS\system32\ntdll.dll
0x7C800000 - 0x7C8FE000 C:\WINDOWS\system32\kernel32.dll
0x77F40000 - 0x77FEB000 C:\WINDOWS\system32\ADVAPI32.dll
0x77DA0000 - 0x77E31000 C:\WINDOWS\system32\RPCRT4.dll
0x77BE0000 - 0x77C38000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08139000 C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll
0x77D10000 - 0x77DA0000 C:\WINDOWS\system32\USER32.dll
0x77E40000 - 0x77E87000 C:\WINDOWS\system32\GDI32.dll
0x76AF0000 - 0x76B1E000 C:\WINDOWS\system32\WINMM.dll
0x76330000 - 0x7634D000 C:\WINDOWS\system32\IMM32.DLL
0x62E40000 - 0x62E49000 C:\WINDOWS\system32\LPK.DLL
0x74D10000 - 0x74D7B000 C:\WINDOWS\system32\USP10.dll
0x10000000 - 0x10007000 C:\j2sdk1.4.2_05\jre\bin\hpi.dll
0x003B0000 - 0x003BE000 C:\j2sdk1.4.2_05\jre\bin\verify.dll
0x003C0000 - 0x003D9000 C:\j2sdk1.4.2_05\jre\bin\java.dll
0x003E0000 - 0x003ED000 C:\j2sdk1.4.2_05\jre\bin\zip.dll
0x02C80000 - 0x02D92000 C:\j2sdk1.4.2_05\jre\bin\awt.dll
0x72F70000 - 0x72F96000 C:\WINDOWS\system32\WINSPOOL.DRV
0x774A0000 - 0x775DD000 C:\WINDOWS\system32\ole32.dll
0x5B190000 - 0x5B1C8000 C:\WINDOWS\system32\uxtheme.dll
0x03000000 - 0x03051000 C:\j2sdk1.4.2_05\jre\bin\fontmanager.dll
0x736D0000 - 0x73719000 C:\WINDOWS\system32\ddraw.dll
0x73B30000 - 0x73B36000 C:\WINDOWS\system32\DCIMAN32.dll
0x738B0000 - 0x73980000 C:\WINDOWS\system32\D3DIM700.DLL
0x75250000 - 0x7527E000 C:\WINDOWS\system32\msctfime.ime
0x7C9C0000 - 0x7D1E0000 C:\WINDOWS\system32\SHELL32.DLL
0x77E90000 - 0x77F06000 C:\WINDOWS\system32\SHLWAPI.dll
0x77390000 - 0x77492000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5D4E0000 - 0x5D577000 C:\WINDOWS\system32\comctl32.dll
0x76350000 - 0x7639A000 C:\WINDOWS\system32\COMDLG32.DLL
0x77B00000 - 0x77B22000 C:\WINDOWS\system32\appHelp.dll
0x76F90000 - 0x7700F000 C:\WINDOWS\system32\CLBCATQ.DLL
0x77010000 - 0x770DD000 C:\WINDOWS\system32\COMRes.dll
0x770E0000 - 0x7716C000 C:\WINDOWS\system32\OLEAUT32.dll
0x77BD0000 - 0x77BD8000 C:\WINDOWS\system32\VERSION.dll
0x779E0000 - 0x77A36000 C:\WINDOWS\System32\cscui.dll
0x765A0000 - 0x765BD000 C:\WINDOWS\System32\CSCDLL.dll
0x75F20000 - 0x7601D000 C:\WINDOWS\System32\browseui.dll
0x778E0000 - 0x779D7000 C:\WINDOWS\system32\SETUPAPI.dll
0x76970000 - 0x76A24000 C:\WINDOWS\system32\USERENV.dll
0x76940000 - 0x76966000 C:\WINDOWS\system32\ntshrui.dll
0x76AD0000 - 0x76AE1000 C:\WINDOWS\system32\ATL.DLL
0x6FF20000 - 0x6FF74000 C:\WINDOWS\system32\NETAPI32.dll
0x77720000 - 0x7788F000 C:\WINDOWS\System32\shdocvw.dll
0x77A40000 - 0x77AD5000 C:\WINDOWS\system32\CRYPT32.dll
0x77AE0000 - 0x77AF2000 C:\WINDOWS\system32\MSASN1.dll
0x76880000 - 0x76904000 C:\WINDOWS\system32\CRYPTUI.dll
0x76BF0000 - 0x76C1E000 C:\WINDOWS\system32\WINTRUST.dll
0x76C50000 - 0x76C78000 C:\WINDOWS\system32\IMAGEHLP.dll
0x77170000 - 0x77217000 C:\WINDOWS\system32\WININET.dll
0x76F20000 - 0x76F4D000 C:\WINDOWS\system32\WLDAP32.dll
0x77F10000 - 0x77F21000 C:\WINDOWS\system32\Secur32.dll
0x20000000 - 0x202D5000 C:\WINDOWS\system32\xpsp2res.dll
0x040E0000 - 0x040FC000 C:\Program Files\Adobe\Acrobat 7.0\ActiveX\PDFShell.dll
0x723A0000 - 0x723BA000 C:\WINDOWS\System32\mydocs.dll
0x04120000 - 0x041AC000 C:\WINDOWS\System32\shdoclc.dll
0x71AA0000 - 0x71AB2000 C:\WINDOWS\system32\MPR.dll
0x75F00000 - 0x75F07000 C:\WINDOWS\System32\drprov.dll
0x71BA0000 - 0x71BAE000 C:\WINDOWS\System32\ntlanman.dll
0x71C60000 - 0x71C77000 C:\WINDOWS\System32\NETUI0.dll
0x71C20000 - 0x71C60000 C:\WINDOWS\System32\NETUI1.dll
0x71C10000 - 0x71C17000 C:\WINDOWS\System32\NETRAP.dll
0x71B80000 - 0x71B93000 C:\WINDOWS\System32\SAMLIB.dll
0x75F10000 - 0x75F19000 C:\WINDOWS\System32\davclnt.dll
0x75910000 - 0x75A08000 C:\WINDOWS\system32\MSGINA.dll
0x76300000 - 0x76310000 C:\WINDOWS\system32\WINSTA.dll
0x745D0000 - 0x7460D000 C:\WINDOWS\system32\ODBC32.dll
0x042F0000 - 0x04308000 C:\WINDOWS\system32\odbcint.dll
0x73B10000 - 0x73B23000 C:\WINDOWS\System32\sti.dll
0x74A60000 - 0x74A67000 C:\WINDOWS\System32\CFGMGR32.dll
0x59E70000 - 0x59F11000 C:\WINDOWS\system32\DBGHELP.dll
0x76BB0000 - 0x76BBB000 C:\WINDOWS\system32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generationtotal 576K, used 421K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 82% used [0x10010000, 0x10079028, 0x10090000)
from space 64K,2% used [0x10090000, 0x10090688, 0x100a0000)
tospace 64K,0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generationtotal 1408K, used 384K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 27% used [0x104f0000, 0x10550190, 0x10550200, 0x10650000)
compacting perm gen total 4096K, used 2912K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 71% used [0x14010000, 0x142e8190, 0x142e8200, 0x14410000)
Local Time = Sat Aug 26 02:38:24 2006
Elapsed Time = 39
#
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_05-b04 mixed mode)
#
Daffna at 2007-7-14 21:30:21 >
