Hi,
It is my first time on this website, recently I had the error regarding java in Stata 15.1 , on the Stata 15 everything was fine and my code worked.
but now it is not and gives me this error
the error : java.lang.NoSuchMethodError: Method com.stata.sfi.DataFrame.dropVar(Ljava/lang/String;I)I name or signature does not match
the code is :
cap cd `csv_folder'
local filelistA: dir . files "*.csv"
foreach file of local filelistA {
import delimited `file', varnames(1) encoding(UTF-8) clear
drop var2 var 3 var4
local dta_file = "`file'"+".dta"
save "`dta_folder'\`dta_file'", replace
}
clear
set obs 1
g Var1=.
save "`data_folder'\alldata.dta", replace
I am not sure if the problem is produced by Java or by this version of Stata, (15.1), I have checked the java , its there and the version is 1.8.0_144
I hope if there is a way to fix it
Regards,
Related Posts with java.lang.NoSuchMethodError + Stata 15.1
what's wrong with the command "distinct"? Code: * Example generated by -dataex-. For more info, type help dataex clear input int a float(b c)…
cannot compute an improvement -- discontinuous region encounteredHi, I'm doing ordered logistic regression with panel data set, and ran across with the error message…
Binsreg questionHello, I am trying to understand how binscatter plots work and I have a somewhat general question i…
loops to import excel file and mergeHi everyone, I have a folder that contains 26 individual .xlsx files, each named with the name of a…
Run do files inside a do fileHello, I have different do files in a folder (let's call dofile1.do, dofile2.do and dofile3.do). I …
Subscribe to:
Post Comments (Atom)
0 Response to java.lang.NoSuchMethodError + Stata 15.1
Post a Comment